Class OptionalSslConnectionFactory

    • Constructor Detail

      • OptionalSslConnectionFactory

        public OptionalSslConnectionFactory​(SslConnectionFactory sslConnectionFactory,
                                            String nextProtocol)

        Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol.

        sslConnectionFactory - The SslConnectionFactory to use if the first bytes are TLS
        nextProtocol - the protocol of the ConnectionFactory to use if the first bytes are not TLS, or null to explicitly handle the non-TLS case