Class ProduceExecuteConsume
java.lang.Object
org.eclipse.jetty.util.thread.strategy.ProduceExecuteConsume
- All Implemented Interfaces:
ExecutionStrategy
A strategy where the caller thread iterates over task production, submitting each
task to an Executor
for execution.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.ExecutionStrategy
ExecutionStrategy.Producer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Executor
private final Locker
private final ExecutionStrategy.Producer
private ProduceExecuteConsume.State
private static final Logger
-
Constructor Summary
ConstructorsConstructorDescriptionProduceExecuteConsume
(ExecutionStrategy.Producer producer, Executor executor) -
Method Summary
-
Field Details
-
LOG
-
_locker
-
_producer
-
_executor
-
_state
-
-
Constructor Details
-
ProduceExecuteConsume
-
-
Method Details
-
produce
public void produce()Description copied from interface:ExecutionStrategy
Initiates (or resumes) the task production and consumption.
The produced task may be run by the same thread that called this method.
- Specified by:
produce
in interfaceExecutionStrategy
- See Also:
-
dispatch
public void dispatch()Description copied from interface:ExecutionStrategy
Initiates (or resumes) the task production and consumption.
This method guarantees that the task is never run by the thread that called this method.
TODO review the need for this (only used by HTTP2 push)- Specified by:
dispatch
in interfaceExecutionStrategy
- See Also:
-