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()
CancelChecker
CancellationException
if the currently processed request
has been canceled.checkCanceled
in interface CancelChecker
public boolean isCanceled()
CancelChecker
isCanceled
in interface CancelChecker