Package org.apache.bookkeeper.client
Class PendingReadOp.SingleLedgerEntryRequest
- java.lang.Object
-
- org.apache.bookkeeper.client.ReadOpBase.LedgerEntryRequest
-
- org.apache.bookkeeper.client.PendingReadOp.SingleLedgerEntryRequest
-
- All Implemented Interfaces:
SpeculativeRequestExecutor
- Direct Known Subclasses:
PendingReadOp.ParallelReadRequest,PendingReadOp.SequenceReadRequest
- Enclosing class:
- PendingReadOp
abstract class PendingReadOp.SingleLedgerEntryRequest extends ReadOpBase.LedgerEntryRequest
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LedgerEntryImplentryImpl-
Fields inherited from class org.apache.bookkeeper.client.ReadOpBase.LedgerEntryRequest
complete, eId, ensemble, firstError, numBookiesMissingEntry, rc, writeSet
-
-
Constructor Summary
Constructors Constructor Description SingleLedgerEntryRequest(java.util.List<BookieId> ensemble, long lId, long eId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()(package private) booleancomplete(int bookieIndex, BookieId host, io.netty.buffer.ByteBuf buffer)Complete the read request from host.-
Methods inherited from class org.apache.bookkeeper.client.ReadOpBase.LedgerEntryRequest
fail, getRc, isComplete, issueSpeculativeRequest, logErrorAndReattemptRead, maybeSendSpeculativeRead, read, toString
-
-
-
-
Field Detail
-
entryImpl
final LedgerEntryImpl entryImpl
-
-
Constructor Detail
-
SingleLedgerEntryRequest
SingleLedgerEntryRequest(java.util.List<BookieId> ensemble, long lId, long eId)
-
-
Method Detail
-
close
public void close()
- Overrides:
closein classReadOpBase.LedgerEntryRequest
-
complete
boolean complete(int bookieIndex, BookieId host, io.netty.buffer.ByteBuf buffer)Complete the read request from host.- Parameters:
bookieIndex- bookie indexhost- host that respond the readbuffer- the data buffer- Returns:
- return true if we managed to complete the entry; otherwise return false if the read entry is not complete or it is already completed before
-
-