Interface ExecutionStrategy

All Known Implementing Classes:
AdaptiveExecutionStrategy, EatWhatYouKill, ExecuteProduceConsume, ProduceConsume, ProduceExecuteConsume

public interface ExecutionStrategy

An ExecutionStrategy executes Runnable tasks produced by a ExecutionStrategy.Producer. The strategy to execute the task may vary depending on the implementation; the task may be run in the calling thread, or in a new thread, etc.

The strategy delegates the production of tasks to a ExecutionStrategy.Producer, and continues to execute tasks until the producer continues to produce them.