Package org.apache.sshd.common.io
Interface IoConnectFuture
- All Superinterfaces:
Cancellable,SshFuture<IoConnectFuture>,WaitableFuture,WithException
- All Known Implementing Classes:
DefaultIoConnectFuture
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetSession(IoSession session) Sets the newly connected session and notifies all threads waiting for this future.Methods inherited from interface org.apache.sshd.common.future.Cancellable
cancel, getCancellation, isCanceledMethods inherited from interface org.apache.sshd.common.future.SshFuture
addListener, removeListenerMethods inherited from interface org.apache.sshd.common.future.WaitableFuture
await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDoneMethods inherited from interface org.apache.sshd.common.future.WithException
getException, setException
-
Method Details
-
getSession
IoSession getSession()- Returns:
- The current
IoSession- may benullif connect operation not finished yet or attempt has failed - See Also:
-
isConnected
boolean isConnected()- Returns:
- true if the connect operation is finished successfully.
-
setSession
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 connectedIoSession
-