public interface SpeculativeRequestExecutionPolicy
The implementation can define its execution policy. For example, when to issue speculative requests and how many speculative requests to issue.
|Modifier and Type||Method and Description|
Initialize the speculative request execution policy and initiate requests.
java.util.concurrent.ScheduledFuture<?> initiateSpeculativeRequest(java.util.concurrent.ScheduledExecutorService scheduler, SpeculativeRequestExecutor requestExectuor)
scheduler- The scheduler service to issue the speculative request
requestExectuor- The executor is used to issue the actual speculative requests
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.