CancelOption defines whether a Cancellable future that is waited upon shall be cancelled if waiting
times out or is interrupted.
VerifiableFuture, WaitableFuture
| Modifier and Type | Field and Description |
|---|---|
| public static final CancelOption | CANCEL_ON_INTERRUPT
Indicates that when waiting on a future is interrupted, the future shall be canceled. |
| public static final CancelOption | CANCEL_ON_TIMEOUT
Indicates that when waiting on a future times out, the future shall be canceled. |
| public static final CancelOption | NO_CANCELLATION
Indicates that even if waiting on a future times out or is interrupted, it shall not be canceled. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CancelOption | |
| public static CancelOption[] |
| CANCEL_ON_INTERRUPT | back to summary |
|---|---|
| public static final CancelOption CANCEL_ON_INTERRUPT Indicates that when waiting on a future is interrupted, the future shall be canceled. | |
| CANCEL_ON_TIMEOUT | back to summary |
|---|---|
| public static final CancelOption CANCEL_ON_TIMEOUT Indicates that when waiting on a future times out, the future shall be canceled. | |
| NO_CANCELLATION | back to summary |
|---|---|
| public static final CancelOption NO_CANCELLATION Indicates that even if waiting on a future times out or is interrupted, it shall not be canceled.
| |
| CancelOption | back to summary |
|---|---|
| private CancelOption() | |
| valueOf | back to summary |
|---|---|
| public static CancelOption valueOf(String name) | |
| values | back to summary |
|---|---|
| public static CancelOption[] values() | |