Package org.apache.sshd.common.io
Interface IoConnectFuture
-
- All Superinterfaces:
Cancellable
,HasException
,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 IoSession
getSession()
boolean
isConnected()
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.HasException
getException
-
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, await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDone
-
Methods inherited from interface org.apache.sshd.common.future.WithException
setException
-
-
-
-
Method Detail
-
getSession
IoSession getSession()
- Returns:
- The current
IoSession
- may benull
if connect operation not finished yet or attempt has failed - See Also:
HasException.getException()
-
isConnected
boolean isConnected()
- Returns:
- true if the connect operation is finished successfully.
-
-