public class XSiteResponseImpl extends CompletableFuture<Void> implements XSiteResponse, BiConsumer<Object,Throwable>
XSiteResponse
.
It implements BiConsumer
in order to be notified when the SingleSiteRequest
is completed.
CompletableFuture.AsynchronousCompletionTask
XSiteResponse.XSiteResponseCompleted
Constructor and Description |
---|
XSiteResponseImpl(TimeService timeService,
XSiteBackup xSiteBackup) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Object o,
Throwable throwable) |
void |
whenCompleted(XSiteResponse.XSiteResponseCompleted xSiteResponseCompleted) |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, 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, whenCompleteAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
andThen
public XSiteResponseImpl(TimeService timeService, XSiteBackup xSiteBackup)
public void whenCompleted(XSiteResponse.XSiteResponseCompleted xSiteResponseCompleted)
whenCompleted
in interface XSiteResponse
Copyright © 2021 JBoss by Red Hat. All rights reserved.