Package org.apache.sshd.common.future
Interface SshFuture<T extends SshFuture<T>>
-
- Type Parameters:
T
- Type of future
- All Superinterfaces:
WaitableFuture
- All Known Subinterfaces:
AuthFuture
,CancelFuture
,CloseFuture
,ConnectFuture
,IoConnectFuture
,IoReadFuture
,IoWriteFuture
,KeyExchangeFuture
,OpenFuture
- All Known Implementing Classes:
AbstractIoWriteFuture
,AbstractSshFuture
,ChannelAsyncInputStream.IoReadFutureImpl
,ChannelAsyncOutputStream.BufferedFuture
,DefaultAuthFuture
,DefaultCancelFuture
,DefaultCancellableSshFuture
,DefaultCloseFuture
,DefaultConnectFuture
,DefaultIoConnectFuture
,DefaultKeyExchangeFuture
,DefaultOpenFuture
,DefaultSshFuture
,DefaultVerifiableSshFuture
,GlobalRequestFuture
,IoWriteFutureImpl
,Nio2DefaultIoWriteFuture
,PendingWriteFuture
,SimpleIoOutputStream.DefaultIoWriteFuture
public interface SshFuture<T extends SshFuture<T>> extends WaitableFuture
Represents the completion of an asynchronous SSH operation on a given object (it may be an SSH session or an SSH channel). Can be listened for completion using aSshFutureListener
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
addListener(SshFutureListener<T> listener)
Adds an event listener which is notified when this future is completed.T
removeListener(SshFutureListener<T> listener)
Removes an existing event listener so it won't be notified when the future is completed.-
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
-
-
-
-
Method Detail
-
addListener
T addListener(SshFutureListener<T> listener)
Adds an event listener which is notified when this future is completed. If the listener is added after the completion, the listener is directly notified.- Parameters:
listener
- TheSshFutureListener
instance to add- Returns:
- The future instance
-
removeListener
T removeListener(SshFutureListener<T> listener)
Removes an existing event listener so it won't be notified when the future is completed.- Parameters:
listener
- TheSshFutureListener
instance to remove- Returns:
- The future instance
-
-