| Modifier and Type | Field and Description |
|---|---|
| private final Object |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected SshFutureListener | |
| protected T | |
| public boolean | await(long
Wait time in milliseconds timeoutMillis, CancelOption... Optional options)CancelOptions defining the behavior on time-out or interrupt; ignored if
the future is not Cancellable.Implements org. Wait for the asynchronous operation to complete with the specified timeout. |
| protected abstract Object | Returns: The non-null result object if the Future is ready, null if the
timeout expired and no result was receivedThe delay we will wait for the Future to be ready timeoutMillis, boolean Tells if the wait can be interrupted or not. If interruptable, CancelOption... true and the thread is
interrupted then an InterruptedIOException is thrown.Optional options)CancelOption defining the behavior on time-out or interrupt.Wait for the Future to be ready. |
| public boolean | awaitUninterruptibly(long
Wait time in milliseconds timeoutMillis, CancelOption... Optional options)CancelOptions defining the behavior on time-out; ignored if the future is
not Cancellable.Implements org. Wait for the asynchronous operation to complete with the specified timeout uninterruptibly. |
| protected < Type of E extends Throwable> EThrowable being generated | Returns: The generated exceptionThe exception creator from the formatted message exceptionCreator, String The extra payload format as per format, Object... String#format(String, Object.The formatting arguments args)Generates an exception whose message is prefixed by the future simple class name + |
| public Object | |
| protected void | |
| public String | |
| protected < The generic result type R> R | Returns: The (nevernull) resultThe expected result type expectedType, long The timeout (millis) to wait for a result timeout, CancelOption... Optional options)CancelOptions defining the behavior on time-out or interrupt.Waits (interruptible) for the specified timeout (msec.) and then checks the result:
|
| id | back to summary |
|---|---|
| private final Object id | |
| AbstractSshFuture | back to summary |
|---|---|
protected AbstractSshFuture(Object id)
| |
| asListener | back to summary |
|---|---|
protected SshFutureListener
| |
| asT | back to summary |
|---|---|
protected T asT()
| |
| await | back to summary |
|---|---|
| public boolean await(long timeoutMillis, CancelOption... options) throws IOException Implements org. Doc from org. Wait for the asynchronous operation to complete with the specified timeout.
| |
| await0 | back to summary |
|---|---|
| protected abstract Object await0(long timeoutMillis, boolean interruptable, CancelOption... options) throws InterruptedIOException Wait for the Future to be ready. If the requested delay is 0 or negative, this method returns immediately.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public boolean awaitUninterruptibly(long timeoutMillis, CancelOption... options) Implements org. Doc from org. Wait for the asynchronous operation to complete with the specified timeout uninterruptibly.
| |
| formatExceptionMessage | back to summary |
|---|---|
| protected <E extends Throwable> E formatExceptionMessage(Function<? super String, ? extends E> exceptionCreator, String format, Object... args) Generates an exception whose message is prefixed by the future simple class name + | |
| getId | back to summary |
|---|---|
| public Object getId() Implements org.
| |
| notifyListener | back to summary |
|---|---|
| protected void notifyListener(SshFutureListener<T> l) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| verifyResult | back to summary |
|---|---|
| protected <R> R verifyResult(Class<? extends R> expectedType, long timeout, CancelOption... options) throws IOException Waits (interruptible) for the specified timeout (msec.) and then checks the result:
| |