Class 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
    • 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 use
        eventLoopGroup - The EventLoopGroup to use
        socketOptions - The SocketOptions to use
        tlsContext - The TlsContext to use
        host - The host name to use
        port - The host port to use
        connectMessageAmender - 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