Class ProduceConsume
- java.lang.Object
-
- org.eclipse.jetty.util.thread.strategy.ProduceConsume
-
- All Implemented Interfaces:
java.lang.Runnable
,ExecutionStrategy
@Deprecated(since="2021-05-27") public class ProduceConsume extends java.lang.Object implements ExecutionStrategy, java.lang.Runnable
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A strategy where the caller thread iterates over task production, submitting each task to an
Executor
for execution.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.ExecutionStrategy
ExecutionStrategy.Producer
-
-
Constructor Summary
Constructors Constructor Description ProduceConsume(ExecutionStrategy.Producer producer, java.util.concurrent.Executor executor)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
dispatch()
Deprecated.Initiates (or resumes) the task production and consumption.void
produce()
Deprecated.Initiates (or resumes) the task production and consumption.void
run()
Deprecated.
-
-
-
Constructor Detail
-
ProduceConsume
public ProduceConsume(ExecutionStrategy.Producer producer, java.util.concurrent.Executor executor)
Deprecated.
-
-
Method Detail
-
produce
public void produce()
Deprecated.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:
ExecutionStrategy.dispatch()
-
dispatch
public void dispatch()
Deprecated.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:
ExecutionStrategy.produce()
-
run
public void run()
Deprecated.- Specified by:
run
in interfacejava.lang.Runnable
-
-