Package org.eclipse.lsp4j.jsonrpc
Class CompletableFutures.FutureCancelChecker
- java.lang.Object
-
- org.eclipse.lsp4j.jsonrpc.CompletableFutures.FutureCancelChecker
-
- All Implemented Interfaces:
CancelChecker
- Enclosing class:
- CompletableFutures
public static class CompletableFutures.FutureCancelChecker extends java.lang.Object implements CancelChecker
-
-
Constructor Summary
Constructors Constructor Description FutureCancelChecker(java.util.concurrent.CompletableFuture<?> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCanceled()Throw aCancellationExceptionif the currently processed request has been canceled.booleanisCanceled()Check for cancellation without throwing an exception.
-
-
-
Method Detail
-
checkCanceled
public void checkCanceled()
Description copied from interface:CancelCheckerThrow aCancellationExceptionif the currently processed request has been canceled.- Specified by:
checkCanceledin interfaceCancelChecker
-
isCanceled
public boolean isCanceled()
Description copied from interface:CancelCheckerCheck for cancellation without throwing an exception.- Specified by:
isCanceledin interfaceCancelChecker
-
-