public class StaggeredRequest<T> extends MultiTargetRequest<T>
CompletableFuture.AsynchronousCompletionTaskrepository, requestId, responseCollectorNO_REQUEST_ID| Modifier and Type | Method and Description |
|---|---|
void |
onResponse(Address sender,
Response response)
Called when a response is received for this response.
|
protected void |
onTimeout()
Called when the timeout task scheduled with
AbstractRequest.setTimeout(ScheduledExecutorService, long, TimeUnit) expires. |
void |
setTimeout(ScheduledExecutorService timeoutExecutor,
long timeout,
TimeUnit unit)
Schedule a timeout task on the given executor, and complete the request with a
TimeoutException
when the task runs. |
getTarget, getTargetsSize, onNewViewcall, cancel, cancel, complete, completeExceptionally, getRequestIdacceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, completedFuture, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, 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, toString, whenComplete, whenCompleteAsync, whenCompleteAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptEither, 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, whenCompleteAsyncpublic void setTimeout(ScheduledExecutorService timeoutExecutor, long timeout, TimeUnit unit)
AbstractRequestTimeoutException
when the task runs.
If a timeout task was already registered with this request, it is cancelled.setTimeout in class AbstractRequest<T>public void onResponse(Address sender, Response response)
RequestonResponse in interface Request<T>onResponse in class MultiTargetRequest<T>protected void onTimeout()
AbstractRequestAbstractRequest.setTimeout(ScheduledExecutorService, long, TimeUnit) expires.onTimeout in class MultiTargetRequest<T>Copyright © 2022 JBoss by Red Hat. All rights reserved.