Class Nio2Connector.DefaultIoConnectFuture

    • Constructor Detail

      • DefaultIoConnectFuture

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

      • 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​(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