Class Nio2Connector.DefaultIoConnectFuture

    • Constructor Detail

      • DefaultIoConnectFuture

        public DefaultIoConnectFuture​(java.lang.Object id,
                                      java.lang.Object lock)
    • Method Detail

      • getException

        public java.lang.Throwable getException()
        Description copied from interface: IoConnectFuture
        Returns the cause of the connection failure.
        Specified by:
        getException in interface IoConnectFuture
        Returns:
        null if the connect operation is not finished yet, or if the connection attempt is successful.
        See Also:
        IoConnectFuture.getSession()
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface IoConnectFuture
        Returns:
        true if the connect operation is finished successfully.
      • setSession

        public void setSession​(IoSession session)
        Description copied from interface: IoConnectFuture
        Sets the newly connected session and notifies all threads waiting for this future. This method is invoked by SSHD internally. Please do not call this method directly.
        Specified by:
        setSession in interface IoConnectFuture
        Parameters:
        session - The connected IoSession
      • setException

        public void setException​(java.lang.Throwable exception)
        Description copied from interface: IoConnectFuture
        Sets the exception caught due to connection failure and notifies all threads waiting for this future. This method is invoked by SSHD internally. Please do not call this method directly.
        Specified by:
        setException in interface IoConnectFuture
        Parameters:
        exception - The caught Throwable