Class NettyChannelConnector

    • Constructor Detail

      • NettyChannelConnector

        public NettyChannelConnector()
        Creates a connector using a default NioEventLoopGroup.
      • NettyChannelConnector

        public NettyChannelConnector​(io.netty.channel.EventLoopGroup eventLoopGroup)
        Creates a connector using a given NioEventLoopGroup.
        Parameters:
        eventLoopGroup - The Netty event loop group.
    • Method Detail

      • connect

        public final CompletableFuture<Connection> connect​(XmppSession xmppSession,
                                                           TcpConnectionConfiguration configuration,
                                                           SessionOpen sessionOpen)
        Description copied from interface: TransportConnector
        Establishes a connection using the transport protocol specific configuration.
        Parameters:
        xmppSession - The XMPP session which will be bound to the transport protocol.
        configuration - The connection configuration for the specific transport protocol.
        sessionOpen - The session open element.
        Returns:
        A CompletableFuture which returns an established (connected) connection on completion.