Package org.apache.sshd.common.io
Interface IoConnectFuture
-
- All Superinterfaces:
Cancellable,SshFuture<IoConnectFuture>,WaitableFuture,WithException
- All Known Implementing Classes:
DefaultIoConnectFuture
public interface IoConnectFuture extends SshFuture<IoConnectFuture>, Cancellable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IoSessiongetSession()booleanisConnected()voidsetSession(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 Detail
-
getSession
IoSession getSession()
- Returns:
- The current
IoSession- may benullif connect operation not finished yet or attempt has failed - See Also:
WithException.getException()
-
isConnected
boolean isConnected()
- Returns:
- true if the connect operation is finished successfully.
-
-