Package org.apache.bookkeeper.client
Class SyncCallbackUtils.SyncCreateAdvCallback
- java.lang.Object
-
- org.apache.bookkeeper.client.SyncCallbackUtils.SyncCreateAdvCallback
-
- All Implemented Interfaces:
AsyncCallback.CreateCallback
- Enclosing class:
- SyncCallbackUtils
static class SyncCallbackUtils.SyncCreateAdvCallback extends java.lang.Object implements AsyncCallback.CreateCallback
-
-
Constructor Summary
Constructors Constructor Description SyncCreateAdvCallback(java.util.concurrent.CompletableFuture<? super LedgerHandleAdv> 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
-
SyncCreateAdvCallback
public SyncCreateAdvCallback(java.util.concurrent.CompletableFuture<? super LedgerHandleAdv> 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
-
-