Interface ConnectFuture

All Superinterfaces:
Cancellable, ClientSessionHolder, SessionContextHolder, SessionHolder<ClientSession>, SshFuture<ConnectFuture>, VerifiableFuture<ConnectFuture>, WaitableFuture, WithException
All Known Implementing Classes:
DefaultConnectFuture

An SshFuture for asynchronous connections requests.
Author:
Apache MINA SSHD Project
  • Method Details

    • getClientSession

      default ClientSession getClientSession()
      Specified by:
      getClientSession in interface ClientSessionHolder
      Returns:
      The underlying ClientSession used
    • isConnected

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

      void setSession(ClientSession 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 ClientSession