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 |
|---|---|
java.util.concurrent.ScheduledFuture<?> |
initiateSpeculativeRequest(java.util.concurrent.ScheduledExecutorService scheduler,
SpeculativeRequestExecutor requestExecutor)
Initialize the speculative request execution policy and initiate requests.
|
java.util.concurrent.ScheduledFuture<?> initiateSpeculativeRequest(java.util.concurrent.ScheduledExecutorService scheduler,
SpeculativeRequestExecutor requestExecutor)
scheduler - The scheduler service to issue the speculative requestrequestExecutor - The executor is used to issue the actual speculative requestsCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.