Package org.apache.bookkeeper.client
Class SyncCallbackUtils.SyncOpenCallback
- java.lang.Object
-
- org.apache.bookkeeper.client.SyncCallbackUtils.SyncOpenCallback
-
- All Implemented Interfaces:
AsyncCallback.OpenCallback
- Enclosing class:
- SyncCallbackUtils
static class SyncCallbackUtils.SyncOpenCallback extends java.lang.Object implements AsyncCallback.OpenCallback
-
-
Constructor Summary
Constructors Constructor Description SyncOpenCallback(java.util.concurrent.CompletableFuture<? super LedgerHandle> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
openComplete(int rc, LedgerHandle lh, java.lang.Object ctx)
Callback method for synchronous open operation.
-
-
-
Constructor Detail
-
SyncOpenCallback
public SyncOpenCallback(java.util.concurrent.CompletableFuture<? super LedgerHandle> future)
-
-
Method Detail
-
openComplete
public void openComplete(int rc, LedgerHandle lh, java.lang.Object ctx)
Callback method for synchronous open operation.- Specified by:
openComplete
in interfaceAsyncCallback.OpenCallback
- Parameters:
rc
- return codelh
- ledger handlectx
- optional control object
-
-