Class EventStreamRPCConnectionConfig
java.lang.Object
software.amazon.awssdk.eventstreamrpc.EventStreamRPCConnectionConfig
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
ConstructorsConstructorDescriptionEventStreamRPCConnectionConfig(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
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.crt.io.ClientBootstrapReturns the ClientBootstrap associated with the EventStreamRPCConnectionConfigReturns the connect message amender associated with the EventStreamRPCConnectionConfigsoftware.amazon.awssdk.crt.io.EventLoopGroupReturns the EventLoopGroup associated with the EventStreamRPCConnectionConfiggetHost()Returns the host name associated with the EventStreamRPCConnectionConfigintgetPort()Returns the port associated with the EventStreamRPCConnectionConfigsoftware.amazon.awssdk.crt.io.SocketOptionsReturns the SocketOptions associated with the EventStreamRPCConnectionConfigsoftware.amazon.awssdk.crt.io.ClientTlsContextReturns the TlsContext associated with the EventStreamRPCConnectionConfig
-
Constructor Details
-
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 Details
-
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
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
Returns the connect message amender associated with the EventStreamRPCConnectionConfig- Returns:
- The connect message amender associated with the EventStreamRPCConnectionConfig
-