public interface Request<T> extends CompletionStage<T>
Modifier and Type | Field and Description |
---|---|
static long |
NO_REQUEST_ID |
Modifier and Type | Method and Description |
---|---|
void |
cancel(Exception cancellationException)
Complete the request with an exception and release its resources.
|
long |
getRequestId() |
boolean |
onNewView(Set<Address> members)
Called when the node received a new cluster view.
|
void |
onResponse(Address sender,
Response response)
Called when a response is received for this response.
|
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, 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
static final long NO_REQUEST_ID
long getRequestId()
void onResponse(Address sender, Response response)
boolean onNewView(Set<Address> members)
true
if any of the request targets is not in the view.void cancel(Exception cancellationException)
Copyright © 2021 JBoss by Red Hat. All rights reserved.