Class Futures.CloseFuture
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<java.lang.Void>
-
- org.apache.bookkeeper.mledger.util.Futures.CloseFuture
-
- All Implemented Interfaces:
java.util.concurrent.CompletionStage<java.lang.Void>,java.util.concurrent.Future<java.lang.Void>,AsyncCallbacks.CloseCallback
- Enclosing class:
- Futures
public static class Futures.CloseFuture extends java.util.concurrent.CompletableFuture<java.lang.Void> implements AsyncCallbacks.CloseCallback
Adapts aAsyncCallbacks.CloseCallbackto aCompletableFuture.
-
-
Constructor Summary
Constructors Constructor Description CloseFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseComplete(java.lang.Object ctx)voidcloseFailed(ManagedLedgerException exception, java.lang.Object ctx)-
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, 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
-
-
-
-
Method Detail
-
closeComplete
public void closeComplete(java.lang.Object ctx)
- Specified by:
closeCompletein interfaceAsyncCallbacks.CloseCallback
-
closeFailed
public void closeFailed(ManagedLedgerException exception, java.lang.Object ctx)
- Specified by:
closeFailedin interfaceAsyncCallbacks.CloseCallback
-
-