Note
the only thing guaranteed is
that if true is returned from one of the awaitXXX methods then the operation has completed. However,
the caller has to determine whether it was a successful or failed completion.
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | |
| public default boolean | Returns: true if the operation is completed.Optional options)CancelOptions defining the behavior on time-out or interrupt; ignored if the
future is not Cancellable.Wait |
| public default boolean | |
| public default boolean | Returns: true if the operation is completed.The number of time units to wait timeout, TimeUnit The unit, CancelOption... TimeUnit for waitingOptional options)CancelOptions defining the behavior on time-out or interrupt; ignored if the
future is not Cancellable.Wait for the asynchronous operation to complete with the specified timeout. |
| public default boolean | |
| public default boolean | Returns: true if the operation is completed.The maximum duration to wait, timeout, CancelOption... null to wait foreverOptional options)CancelOptions defining the behavior on time-out or interrupt; ignored if the
future is not Cancellable.Wait for the asynchronous operation to complete with the specified timeout. |
| public default boolean | Returns: true if the operation is completed.Wait time in milliseconds timeoutMillis)Wait for the asynchronous operation to complete with the specified timeout. |
| public boolean | Returns: true if the operation is completed.Wait time in milliseconds timeoutMillis, CancelOption... Optional options)CancelOptions defining the behavior on time-out or interrupt; ignored if
the future is not Cancellable.Wait for the asynchronous operation to complete with the specified timeout. |
| public default boolean | |
| public default boolean | Returns: true if the operation is completed.Optional options)CancelOptions defining the behavior on time-out; ignored if the future is not
Cancellable.Wait |
| public default boolean | Returns: true if the operation is completed.The number of time units to wait timeout, TimeUnit The unit)TimeUnit for waitingWait for the asynchronous operation to complete with the specified timeout uninterruptibly. |
| public default boolean | Returns: true if the operation is completed.The number of time units to wait timeout, TimeUnit The unit, CancelOption... TimeUnit for waitingOptional options)CancelOptions defining the behavior on time-out; ignored if the future is not
Cancellable.Wait for the asynchronous operation to complete with the specified timeout uninterruptibly. |
| public default boolean | Returns: true if the operation is finished.Wait time, timeoutMillis)null to wait foreverWait for the asynchronous operation to complete with the specified timeout uninterruptibly. |
| public default boolean | Returns: true if the operation is finished.Wait time, timeoutMillis, CancelOption... null to wait foreverOptional options)CancelOptions defining the behavior on time-out; ignored if the future is
not Cancellable.Wait for the asynchronous operation to complete with the specified timeout uninterruptibly. |
| public default boolean | Returns: true if the operation is finished.Wait time in milliseconds timeoutMillis)Wait for the asynchronous operation to complete with the specified timeout uninterruptibly. |
| public boolean | Returns: true if the operation is finished.Wait time in milliseconds timeoutMillis, CancelOption... Optional options)CancelOptions defining the behavior on time-out; ignored if the future is
not Cancellable.Wait for the asynchronous operation to complete with the specified timeout uninterruptibly. |
| public Object | |
| public boolean | Returns: true if the asynchronous operation is completedNote it is up to the caller to determine whether it was a successful or failed completion.
|
| await | back to summary |
|---|---|
| public default boolean await() throws IOException Wait
| |
| await | back to summary |
|---|---|
| public default boolean await(CancelOption... options) throws IOException Wait
| |
| await | back to summary |
|---|---|
| public default boolean await(long timeout, TimeUnit unit) throws IOException Wait for the asynchronous operation to complete with the specified timeout.
| |
| await | back to summary |
|---|---|
| public default boolean await(long timeout, TimeUnit unit, CancelOption... options) throws IOException Wait for the asynchronous operation to complete with the specified timeout.
| |
| await | back to summary |
|---|---|
| public default boolean await(Duration timeout) throws IOException Wait for the asynchronous operation to complete with the specified timeout.
| |
| await | back to summary |
|---|---|
| public default boolean await(Duration timeout, CancelOption... options) throws IOException Wait for the asynchronous operation to complete with the specified timeout.
| |
| await | back to summary |
|---|---|
| public default boolean await(long timeoutMillis) throws IOException Wait for the asynchronous operation to complete with the specified timeout.
| |
| await | back to summary |
|---|---|
| public boolean await(long timeoutMillis, CancelOption... options) throws IOException Wait for the asynchronous operation to complete with the specified timeout.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public default boolean awaitUninterruptibly() Wait
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public default boolean awaitUninterruptibly(CancelOption... options) Wait
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public default boolean awaitUninterruptibly(long timeout, TimeUnit unit) Wait for the asynchronous operation to complete with the specified timeout uninterruptibly.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public default boolean awaitUninterruptibly(long timeout, TimeUnit unit, CancelOption... options) Wait for the asynchronous operation to complete with the specified timeout uninterruptibly.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public default boolean awaitUninterruptibly(Duration timeoutMillis) Wait for the asynchronous operation to complete with the specified timeout uninterruptibly.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public default boolean awaitUninterruptibly(Duration timeoutMillis, CancelOption... options) Wait for the asynchronous operation to complete with the specified timeout uninterruptibly.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public default boolean awaitUninterruptibly(long timeoutMillis) Wait for the asynchronous operation to complete with the specified timeout uninterruptibly.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public boolean awaitUninterruptibly(long timeoutMillis, CancelOption... options) Wait for the asynchronous operation to complete with the specified timeout uninterruptibly.
| |
| getId | back to summary |
|---|---|
public Object getId()
| |
| isDone | back to summary |
|---|---|
public boolean isDone()
| |