Package org.apache.bookkeeper.client
Class SyncCallbackUtils.SyncReadCallback
- java.lang.Object
-
- org.apache.bookkeeper.client.SyncCallbackUtils.SyncReadCallback
-
- All Implemented Interfaces:
AsyncCallback.ReadCallback
- Enclosing class:
- SyncCallbackUtils
static class SyncCallbackUtils.SyncReadCallback extends java.lang.Object implements AsyncCallback.ReadCallback
-
-
Constructor Summary
Constructors Constructor Description SyncReadCallback(java.util.concurrent.CompletableFuture<java.util.Enumeration<LedgerEntry>> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readComplete(int rc, LedgerHandle lh, java.util.Enumeration<LedgerEntry> seq, java.lang.Object ctx)
Implementation of callback interface for synchronous read method.
-
-
-
Constructor Detail
-
SyncReadCallback
public SyncReadCallback(java.util.concurrent.CompletableFuture<java.util.Enumeration<LedgerEntry>> future)
-
-
Method Detail
-
readComplete
public void readComplete(int rc, LedgerHandle lh, java.util.Enumeration<LedgerEntry> seq, java.lang.Object ctx)
Implementation of callback interface for synchronous read method.- Specified by:
readComplete
in interfaceAsyncCallback.ReadCallback
- Parameters:
rc
- return codelh
- ledger handleseq
- sequence of entriesctx
- control object
-
-