Class SocketConnector

    • Constructor Detail

      • SocketConnector

        public SocketConnector()
        Creates a connector using a plain socket.
      • SocketConnector

        public SocketConnector​(SocketFactory socketFactory)
        Creates a connector using a socket factory.
        Parameters:
        socketFactory - The socket factory.
    • 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.