Package org.apache.bookkeeper.client
Class SyncCallbackUtils.SyncCreateCallback
- java.lang.Object
-
- org.apache.bookkeeper.client.SyncCallbackUtils.SyncCreateCallback
-
- All Implemented Interfaces:
AsyncCallback.CreateCallback
- Enclosing class:
- SyncCallbackUtils
static class SyncCallbackUtils.SyncCreateCallback extends java.lang.Object implements AsyncCallback.CreateCallback
-
-
Constructor Summary
Constructors Constructor Description SyncCreateCallback(java.util.concurrent.CompletableFuture<? super LedgerHandle> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createComplete(int rc, LedgerHandle lh, java.lang.Object ctx)
Create callback implementation for synchronous create call.
-
-
-
Constructor Detail
-
SyncCreateCallback
public SyncCreateCallback(java.util.concurrent.CompletableFuture<? super LedgerHandle> future)
-
-
Method Detail
-
createComplete
public void createComplete(int rc, LedgerHandle lh, java.lang.Object ctx)
Create callback implementation for synchronous create call.- Specified by:
createComplete
in interfaceAsyncCallback.CreateCallback
- Parameters:
rc
- return codelh
- ledger handle objectctx
- optional control object
-
-