Top Methods
org.apache.sshd.common.io

public Interface IoConnectFuture

extends SshFuture<IoConnectFuture>, Cancellable
Known Direct Implementers
org.apache.sshd.common.io.DefaultIoConnectFuture
Imports
org.apache.sshd.common.future.Cancellable, .SshFuture

Method Summary

Modifier and TypeMethod and Description
public IoSession

Returns:

The current IoSession - may be null if connect operation not finished yet or attempt has failed
getSession
()

public boolean

Returns:

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

public void
setSession(IoSession
The connected IoSession
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

Method Detail

getSessionback to summary
public IoSession getSession()
Returns:IoSession

The current IoSession - may be null if connect operation not finished yet or attempt has failed

See Also
getException()
isConnectedback to summary
public boolean isConnected()
Returns:boolean

true if the connect operation is finished successfully.

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

The connected IoSession