public class ServiceRequest<T,C>
extends org.jgroups.blocks.UnicastRequest<T>
NoSuchService response to a CancellationException.CompletableFuture.AsynchronousCompletionTask| Constructor and Description |
|---|
ServiceRequest(org.jgroups.blocks.RequestCorrelator correlator,
org.jgroups.Address target,
org.jgroups.blocks.RequestOptions options,
C context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
completeExceptionally(Throwable exception) |
T |
get() |
T |
join() |
void |
receiveResponse(Object value,
org.jgroups.Address sender,
boolean exceptional) |
CompletionStage<T> |
send(org.jgroups.util.Buffer data) |
around, get, getNow, getResult, responsesComplete, sendRequest, siteUnreachable, toString, transportClosed, viewChange, waitForCompletion, waitForCompletioncancel, corrDone, execute, requestId, requestId, setResponseFilteracceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completedFuture, exceptionally, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsyncpublic ServiceRequest(org.jgroups.blocks.RequestCorrelator correlator,
org.jgroups.Address target,
org.jgroups.blocks.RequestOptions options,
C context)
public CompletionStage<T> send(org.jgroups.util.Buffer data) throws CommandDispatcherException
CommandDispatcherExceptionpublic void receiveResponse(Object value, org.jgroups.Address sender, boolean exceptional)
receiveResponse in class org.jgroups.blocks.UnicastRequest<T>public boolean completeExceptionally(Throwable exception)
completeExceptionally in class CompletableFuture<T>public T get() throws InterruptedException, ExecutionException
get in interface Future<T>get in class org.jgroups.blocks.UnicastRequest<T>InterruptedExceptionExecutionExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.