Interface Request<S,T>
- All Superinterfaces:
CompletionStage<T>
- All Known Implementing Classes:
AbstractRequest, ExclusiveTargetRequest, MultiTargetRequest, SingleSiteRequest, SingleTargetRequest, StaggeredRequest
A remote command invocation request.
- Since:
- 9.1
- Author:
- Dan Berindei
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) Cancels the current request if it is not already completed.voidComplete the request with an exception and release its resources.longbooleanCalled when the node received a new cluster view.voidonResponse(S sender, Response response) Called when a response is received for this response.Methods inherited from interface CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Field Details
-
NO_REQUEST_ID
static final long NO_REQUEST_ID- See Also:
-
-
Method Details
-
getRequestId
long getRequestId()- Returns:
- The unique request id.
-
onResponse
-
onNewView
-
cancel
Complete the request with an exception and release its resources. -
cancel
boolean cancel(boolean mayInterruptIfRunning) Cancels the current request if it is not already completed.- Parameters:
mayInterruptIfRunning- allow to interrupt running thread.- Returns:
true, if this task was cancelled.- See Also:
-