Package org.apache.bookkeeper.client
Class SyncCallbackUtils.SyncAddCallback
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<java.lang.Long>
-
- org.apache.bookkeeper.client.SyncCallbackUtils.SyncAddCallback
-
- All Implemented Interfaces:
java.util.concurrent.CompletionStage<java.lang.Long>,java.util.concurrent.Future<java.lang.Long>,AsyncCallback.AddCallback,AsyncCallback.AddCallbackWithLatency
- Enclosing class:
- SyncCallbackUtils
static class SyncCallbackUtils.SyncAddCallback extends java.util.concurrent.CompletableFuture<java.lang.Long> implements AsyncCallback.AddCallback
-
-
Constructor Summary
Constructors Constructor Description SyncAddCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComplete(int rc, LedgerHandle lh, long entry, java.lang.Object ctx)Implementation of callback interface for synchronous read method.-
Methods inherited from class java.util.concurrent.CompletableFuture
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.bookkeeper.client.AsyncCallback.AddCallback
addCompleteWithLatency
-
-
-
-
Method Detail
-
addComplete
public void addComplete(int rc, LedgerHandle lh, long entry, java.lang.Object ctx)Implementation of callback interface for synchronous read method.- Specified by:
addCompletein interfaceAsyncCallback.AddCallback- Parameters:
rc- return codelh- ledger handleentry- entry identifierctx- control object
-
-