Interface Request<T>
- All Superinterfaces:
- CompletionStage<T>
- All Known Implementing Classes:
- AbstractRequest,- MultiTargetRequest,- SingleSiteRequest,- SingleTargetRequest,- StaggeredRequest
A remote command invocation request.
- Since:
- 9.1
- Author:
- Dan Berindei
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidComplete the request with an exception and release its resources.longbooleanCalled when the node received a new cluster view.voidonResponse(Address sender, Response response) Called when a response is received for this response.Methods inherited from interface java.util.concurrent.CompletionStageacceptEither, 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_IDstatic final long NO_REQUEST_ID- See Also:
 
 
- 
- 
Method Details- 
getRequestIdlong getRequestId()- Returns:
- The unique request id.
 
- 
onResponseCalled when a response is received for this response.
- 
onNewViewCalled when the node received a new cluster view.- Returns:
- trueif any of the request targets is not in the view.
 
- 
cancelComplete the request with an exception and release its resources.
 
-