Interface IoConnectFuture

All Superinterfaces:
Cancellable, HasException, SshFuture<IoConnectFuture>, WaitableFuture, WithException
All Known Implementing Classes:
DefaultIoConnectFuture

public interface IoConnectFuture extends SshFuture<IoConnectFuture>, Cancellable
  • Method Details

    • getSession

      IoSession getSession()
      Returns:
      The current IoSession - may be null if connect operation not finished yet or attempt has failed
      See Also:
    • isConnected

      boolean isConnected()
      Returns:
      true if the connect operation is finished successfully.
    • setSession

      void setSession(IoSession session)
      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.
      Parameters:
      session - The connected IoSession