SshFutureListener.
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: The future instanceThe listener)SshFutureListener instance to addAdds an event listener which is notified when this future is completed. |
| public T | Returns: The future instanceThe listener)SshFutureListener instance to removeRemoves an existing event listener so it won't be notified when the future is completed. |
| addListener | back to summary |
|---|---|
| public 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.
| |
| removeListener | back to summary |
|---|---|
| public T removeListener(SshFutureListener<T> listener) Removes an existing event listener so it won't be notified when the future is completed.
| |