Class EventStreamRPCConnectionConfig
- java.lang.Object
-
- software.amazon.awssdk.eventstreamrpc.EventStreamRPCConnectionConfig
-
public class EventStreamRPCConnectionConfig extends Object
The closeable elements inside the EventStreamRPCConnectionConfig are not cleaned up when this config object is done. It is still up to the caller of the constructor to clean up resources that are associated in the config. The connect message transformer is used to supply additional connect message headers and supply the payload of the connect message. This is to be used to supply authentication information on the connect
-
-
Constructor Summary
Constructors Constructor Description EventStreamRPCConnectionConfig(software.amazon.awssdk.crt.io.ClientBootstrap clientBootstrap, software.amazon.awssdk.crt.io.EventLoopGroup eventLoopGroup, software.amazon.awssdk.crt.io.SocketOptions socketOptions, software.amazon.awssdk.crt.io.ClientTlsContext tlsContext, String host, int port, Supplier<CompletableFuture<MessageAmendInfo>> connectMessageAmender)
Creates a new EventStreamRPCConnectionConfig with the given data
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description software.amazon.awssdk.crt.io.ClientBootstrap
getClientBootstrap()
Returns the ClientBootstrap associated with the EventStreamRPCConnectionConfigSupplier<CompletableFuture<MessageAmendInfo>>
getConnectMessageAmender()
Returns the connect message amender associated with the EventStreamRPCConnectionConfigsoftware.amazon.awssdk.crt.io.EventLoopGroup
getEventLoopGroup()
Returns the EventLoopGroup associated with the EventStreamRPCConnectionConfigString
getHost()
Returns the host name associated with the EventStreamRPCConnectionConfigint
getPort()
Returns the port associated with the EventStreamRPCConnectionConfigsoftware.amazon.awssdk.crt.io.SocketOptions
getSocketOptions()
Returns the SocketOptions associated with the EventStreamRPCConnectionConfigsoftware.amazon.awssdk.crt.io.ClientTlsContext
getTlsContext()
Returns the TlsContext associated with the EventStreamRPCConnectionConfig
-
-
-
Constructor Detail
-
EventStreamRPCConnectionConfig
public EventStreamRPCConnectionConfig(software.amazon.awssdk.crt.io.ClientBootstrap clientBootstrap, software.amazon.awssdk.crt.io.EventLoopGroup eventLoopGroup, software.amazon.awssdk.crt.io.SocketOptions socketOptions, software.amazon.awssdk.crt.io.ClientTlsContext tlsContext, String host, int port, Supplier<CompletableFuture<MessageAmendInfo>> connectMessageAmender)
Creates a new EventStreamRPCConnectionConfig with the given data- Parameters:
clientBootstrap
- The ClientBootstrap to useeventLoopGroup
- The EventLoopGroup to usesocketOptions
- The SocketOptions to usetlsContext
- The TlsContext to usehost
- The host name to useport
- The host port to useconnectMessageAmender
- The connect message amender to use
-
-
Method Detail
-
getClientBootstrap
public software.amazon.awssdk.crt.io.ClientBootstrap getClientBootstrap()
Returns the ClientBootstrap associated with the EventStreamRPCConnectionConfig- Returns:
- the ClientBootstrap associated with the EventStreamRPCConnectionConfig
-
getEventLoopGroup
public software.amazon.awssdk.crt.io.EventLoopGroup getEventLoopGroup()
Returns the EventLoopGroup associated with the EventStreamRPCConnectionConfig- Returns:
- the EventLoopGroup associated with the EventStreamRPCConnectionConfig
-
getSocketOptions
public software.amazon.awssdk.crt.io.SocketOptions getSocketOptions()
Returns the SocketOptions associated with the EventStreamRPCConnectionConfig- Returns:
- The SocketOptions associated with the EventStreamRPCConnectionConfig
-
getTlsContext
public software.amazon.awssdk.crt.io.ClientTlsContext getTlsContext()
Returns the TlsContext associated with the EventStreamRPCConnectionConfig- Returns:
- The TlsContext associated with the EventStreamRPCConnectionConfig
-
getHost
public String getHost()
Returns the host name associated with the EventStreamRPCConnectionConfig- Returns:
- The host name associated with the EventStreamRPCConnectionConfig
-
getPort
public int getPort()
Returns the port associated with the EventStreamRPCConnectionConfig- Returns:
- The port associated with the EventStreamRPCConnectionConfig
-
getConnectMessageAmender
public Supplier<CompletableFuture<MessageAmendInfo>> getConnectMessageAmender()
Returns the connect message amender associated with the EventStreamRPCConnectionConfig- Returns:
- The connect message amender associated with the EventStreamRPCConnectionConfig
-
-