|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SshFuture<T extends SshFuture>
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 a SshFutureListener.
| Method Summary | |
|---|---|
T |
addListener(SshFutureListener<T> listener)
Adds an event listener which is notified when this future is completed. |
T |
await()
Wait for the asynchronous operation to complete. |
boolean |
await(long timeoutMillis)
Wait for the asynchronous operation to complete with the specified timeout. |
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit)
Wait for the asynchronous operation to complete with the specified timeout. |
T |
awaitUninterruptibly()
Wait for the asynchronous operation to complete uninterruptibly. |
boolean |
awaitUninterruptibly(long timeoutMillis)
Wait for the asynchronous operation to complete with the specified timeout uninterruptibly. |
boolean |
awaitUninterruptibly(long timeout,
java.util.concurrent.TimeUnit unit)
Wait for the asynchronous operation to complete with the specified timeout uninterruptibly. |
boolean |
isDone()
Returns if the asynchronous operation is completed. |
T |
removeListener(SshFutureListener<T> listener)
Removes an existing event listener so it won't be notified when the future is completed. |
| Method Detail |
|---|
T await()
throws java.lang.InterruptedException
java.lang.InterruptedException
boolean await(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
java.lang.InterruptedException
boolean await(long timeoutMillis)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionT awaitUninterruptibly()
boolean awaitUninterruptibly(long timeout,
java.util.concurrent.TimeUnit unit)
boolean awaitUninterruptibly(long timeoutMillis)
boolean isDone()
T addListener(SshFutureListener<T> listener)
T removeListener(SshFutureListener<T> listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||