T - Type of futurepublic interface SshFuture<T extends SshFuture> extends WaitableFuture
SshFutureListener.| Modifier and Type | Method and 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.
|
await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDoneT addListener(SshFutureListener<T> listener)
listener - The SshFutureListener instance to addT removeListener(SshFutureListener<T> listener)
listener - The SshFutureListener instance to removeCopyright © 2018–2020 The Apache Software Foundation. All rights reserved.