class TryReadLastConfirmedOp
extends java.lang.Object
implements org.apache.bookkeeper.proto.BookkeeperInternalCallbacks.ReadEntryCallback
ReadLastConfirmedOp if you need quorum coverage checking.| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.bookkeeper.proto.BookieClient |
bookieClient |
(package private) ReadLastConfirmedOp.LastConfirmedDataCallback |
cb |
(package private) boolean |
completed |
(package private) java.util.List<org.apache.bookkeeper.net.BookieId> |
currentEnsemble |
(package private) boolean |
hasValidResponse |
(package private) LedgerHandle |
lh |
(package private) static org.slf4j.Logger |
LOG |
(package private) org.apache.bookkeeper.proto.checksum.DigestManager.RecoveryData |
maxRecoveredData |
(package private) int |
numResponsesPending |
| Constructor and Description |
|---|
TryReadLastConfirmedOp(LedgerHandle lh,
org.apache.bookkeeper.proto.BookieClient bookieClient,
java.util.List<org.apache.bookkeeper.net.BookieId> ensemble,
ReadLastConfirmedOp.LastConfirmedDataCallback cb,
long lac) |
| Modifier and Type | Method and Description |
|---|---|
void |
initiate() |
void |
readEntryComplete(int rc,
long ledgerId,
long entryId,
io.netty.buffer.ByteBuf buffer,
java.lang.Object ctx) |
static final org.slf4j.Logger LOG
final LedgerHandle lh
final org.apache.bookkeeper.proto.BookieClient bookieClient
final ReadLastConfirmedOp.LastConfirmedDataCallback cb
int numResponsesPending
volatile boolean hasValidResponse
volatile boolean completed
org.apache.bookkeeper.proto.checksum.DigestManager.RecoveryData maxRecoveredData
final java.util.List<org.apache.bookkeeper.net.BookieId> currentEnsemble
TryReadLastConfirmedOp(LedgerHandle lh, org.apache.bookkeeper.proto.BookieClient bookieClient, java.util.List<org.apache.bookkeeper.net.BookieId> ensemble, ReadLastConfirmedOp.LastConfirmedDataCallback cb, long lac)
public void initiate()
public void readEntryComplete(int rc,
long ledgerId,
long entryId,
io.netty.buffer.ByteBuf buffer,
java.lang.Object ctx)
readEntryComplete in interface org.apache.bookkeeper.proto.BookkeeperInternalCallbacks.ReadEntryCallbackCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.