Package org.apache.bookkeeper.client
Interface SpeculativeRequestExecutor
-
- All Known Implementing Classes:
BatchedReadOp.BatchedLedgerEntryRequest
,BatchedReadOp.SequenceReadRequest
,PendingReadOp.ParallelReadRequest
,PendingReadOp.SequenceReadRequest
,PendingReadOp.SingleLedgerEntryRequest
,ReadLastConfirmedAndEntryOp
,ReadOpBase.LedgerEntryRequest
public interface SpeculativeRequestExecutor
Define an executor for issuing speculative requests.If the implementation can issue a speculative read, it should return true to indicate a speculative request should be issued. Otherwise, return false.
- Since:
- 4.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean>
issueSpeculativeRequest()
Issues a speculative request and indicates if more speculative requests should be issued.
-