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 SummaryConstructors Constructor Description SyncAddCallback()
 - 
Method SummaryAll 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.CompletableFutureacceptEither, 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
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.bookkeeper.client.AsyncCallback.AddCallbackaddCompleteWithLatency
 
- 
 
- 
- 
- 
Method Detail- 
addCompletepublic void addComplete(int rc, LedgerHandle lh, long entry, java.lang.Object ctx)Implementation of callback interface for synchronous read method.- Specified by:
- addCompletein interface- AsyncCallback.AddCallback
- Parameters:
- rc- return code
- lh- ledger handle
- entry- entry identifier
- ctx- control object
 
 
- 
 
-