public class ExecutionTask<T extends ExecutionContext>
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
ExecutionTask(MessageQueue<T> messageQueue,
T executionContext,
java.util.Collection<java.util.function.Consumer<T>> contextualTasks)
Construct a new ExecuteTask that will execute messages from the given MessageQueue.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
public ExecutionTask(MessageQueue<T> messageQueue, T executionContext, java.util.Collection<java.util.function.Consumer<T>> contextualTasks)
messageQueue
- The MessageQueue.executionContext
- The context in which messages should execute.contextualTasks
- Tasks which should be invoked in synchronous fashion with the execution context.