Top Description Methods
org.apache.sshd.client.future

public Interface ConnectFuture

extends SshFuture<ConnectFuture>, VerifiableFuture<ConnectFuture>, SessionHolder<ClientSession>, ClientSessionHolder, Cancellable
Known Direct Implementers
org.apache.sshd.client.future.DefaultConnectFuture
Imports
org.apache.sshd.client.session.ClientSession, .ClientSessionHolder, org.apache.sshd.common.future.Cancellable, .SshFuture, .VerifiableFuture, org.apache.sshd.common.session.SessionHolder

An SshFuture for asynchronous connections requests.
Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public default ClientSession
public boolean

Returns:

true if the connect operation is finished successfully.
isConnected
()

public void
setSession(ClientSession session)

Sets the newly connected session and notifies all threads waiting for this future.

Inherited from org.apache.sshd.common.future.Cancellable:
cancelgetCancellationisCanceled
Inherited from org.apache.sshd.common.future.SshFuture:
addListenerremoveListener
Inherited from org.apache.sshd.common.future.VerifiableFuture:
verifyverifyverifyverifyverifyverifyverifyverify
Inherited from org.apache.sshd.common.session.SessionHolder:
getSessiongetSessionContext

Method Detail

getClientSessionback to summary
public default ClientSession getClientSession()

Implements org.apache.sshd.client.session.ClientSessionHolder.getClientSession.

Returns:ClientSession

Doc from org.apache.sshd.client.session.ClientSessionHolder.getClientSession.

The underlying ClientSession used

Annotations
@Override
isConnectedback to summary
public boolean isConnected()
Returns:boolean

true if the connect operation is finished successfully.

setSessionback to summary
public 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:ClientSession

The ClientSession