class PendingWriteLacOp
extends java.lang.Object
implements org.apache.bookkeeper.proto.BookkeeperInternalCallbacks.WriteLacCallback
This is an optional protocol operations to facilitate tailing readers to be up to date with the writer. This is best effort to get latest LAC from bookies, and doesn't affect the correctness of the protocol.
| Modifier and Type | Field and Description |
|---|---|
(package private) DistributionSchedule.AckSet |
ackSet |
(package private) AsyncCallback.AddLacCallback |
cb |
(package private) ClientContext |
clientCtx |
(package private) boolean |
completed |
(package private) java.lang.Object |
ctx |
(package private) java.util.List<org.apache.bookkeeper.net.BookieId> |
currentEnsemble |
(package private) long |
lac |
(package private) int |
lastSeenError |
(package private) LedgerHandle |
lh |
(package private) java.util.BitSet |
receivedResponseSet |
(package private) org.apache.bookkeeper.util.ByteBufList |
toSend |
| Constructor and Description |
|---|
PendingWriteLacOp(LedgerHandle lh,
ClientContext clientCtx,
java.util.List<org.apache.bookkeeper.net.BookieId> ensemble,
AsyncCallback.AddLacCallback cb,
java.lang.Object ctx) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
initiate(org.apache.bookkeeper.util.ByteBufList toSend) |
(package private) void |
sendWriteLacRequest(int bookieIndex) |
(package private) void |
setLac(long lac) |
void |
writeLacComplete(int rc,
long ledgerId,
org.apache.bookkeeper.net.BookieId addr,
java.lang.Object ctx) |
org.apache.bookkeeper.util.ByteBufList toSend
long lac
java.lang.Object ctx
java.util.BitSet receivedResponseSet
DistributionSchedule.AckSet ackSet
boolean completed
int lastSeenError
LedgerHandle lh
ClientContext clientCtx
final java.util.List<org.apache.bookkeeper.net.BookieId> currentEnsemble
PendingWriteLacOp(LedgerHandle lh, ClientContext clientCtx, java.util.List<org.apache.bookkeeper.net.BookieId> ensemble, AsyncCallback.AddLacCallback cb, java.lang.Object ctx)
void setLac(long lac)
void sendWriteLacRequest(int bookieIndex)
void initiate(org.apache.bookkeeper.util.ByteBufList toSend)
public void writeLacComplete(int rc,
long ledgerId,
org.apache.bookkeeper.net.BookieId addr,
java.lang.Object ctx)
writeLacComplete in interface org.apache.bookkeeper.proto.BookkeeperInternalCallbacks.WriteLacCallbackCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.