public static class CompletableFutures.FutureCancelChecker extends java.lang.Object implements CancelChecker
| Constructor and Description |
|---|
FutureCancelChecker(java.util.concurrent.CompletableFuture<?> future) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCanceled()
Throw a
CancellationException if the currently processed request
has been canceled. |
boolean |
isCanceled()
Check for cancellation without throwing an exception.
|
public FutureCancelChecker(java.util.concurrent.CompletableFuture<?> future)
public void checkCanceled()
CancelCheckerCancellationException if the currently processed request
has been canceled.checkCanceled in interface CancelCheckerpublic boolean isCanceled()
CancelCheckerisCanceled in interface CancelChecker