Package org.eclipse.jetty.util.thread
Interface ExecutionStrategy
-
- All Known Implementing Classes:
EatWhatYouKill
,ExecuteProduceConsume
,ProduceConsume
,ProduceExecuteConsume
@Deprecated(since="2021-05-27") public interface ExecutionStrategy
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.An
ExecutionStrategy
executesRunnable
tasks produced by aExecutionStrategy.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ExecutionStrategy.Producer
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
dispatch
void dispatch()
Deprecated.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)- See Also:
produce()
-
produce
void produce()
Deprecated.Initiates (or resumes) the task production and consumption.
The produced task may be run by the same thread that called this method.
- See Also:
dispatch()
-
-