Package org.apache.sshd.common.io
Interface IoConnectFuture
- All Superinterfaces:
Cancellable
,SshFuture<IoConnectFuture>
,WaitableFuture
,WithException
- All Known Implementing Classes:
DefaultIoConnectFuture
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setSession
(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, isCanceled
Methods inherited from interface org.apache.sshd.common.future.SshFuture
addListener, removeListener
Methods inherited from interface org.apache.sshd.common.future.WaitableFuture
await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDone
Methods inherited from interface org.apache.sshd.common.future.WithException
getException, setException
-
Method Details
-
getSession
IoSession getSession()- Returns:
- The current
IoSession
- may benull
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
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
-