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
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<Boolean>Issues a speculative request and indicates if more speculative requests should be issued.
-
Method Details
-
issueSpeculativeRequest
com.google.common.util.concurrent.ListenableFuture<Boolean> issueSpeculativeRequest()Issues a speculative request and indicates if more speculative requests should be issued.- Returns:
- whether more speculative requests should be issued
-