Interface ExecutionStrategy
-
- All Superinterfaces:
com.tangosol.io.ExternalizableLite,Serializable
- All Known Implementing Classes:
StandardExecutionStrategy
public interface ExecutionStrategy extends com.tangosol.io.ExternalizableLiteAnalyzes current runtime information to define anExecutionPlanfor executing aTaskwith availableExecutors.- Since:
- 21.12
- Author:
- bo
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classExecutionStrategy.EvaluationRationaleA rationale for evaluating anExecutionStrategy.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutionPlananalyze(ExecutionPlan currentPlan, Map<String,? extends TaskExecutorService.ExecutorInfo> mapExecutorInfo, EnumSet<ExecutionStrategy.EvaluationRationale> rationales)Analyzes the currentExecutionPlanfor aTask, together with theTaskExecutorService.ExecutorInfoto produce a newExecutionPlan.
-
-
-
Method Detail
-
analyze
ExecutionPlan analyze(ExecutionPlan currentPlan, Map<String,? extends TaskExecutorService.ExecutorInfo> mapExecutorInfo, EnumSet<ExecutionStrategy.EvaluationRationale> rationales)
Analyzes the currentExecutionPlanfor aTask, together with theTaskExecutorService.ExecutorInfoto produce a newExecutionPlan.- Parameters:
currentPlan- the currentExecutionPlan(nullwhen undefined)mapExecutorInfo- a read-onlyMapof the currentTaskExecutorService.ExecutorInfo, one for each registeredExecutor, keyed by theExecutoridrationales- theExecutionStrategy.EvaluationRationales for evaluating theExecutionStrategy- Returns:
- new
ExecutionPlan
-
-