Package org.eclipse.jetty.util.thread
Interface ExecutionStrategy.Producer
-
- All Known Implementing Classes:
HTTP2Connection.HTTP2Producer
,TestConnection
- Enclosing interface:
- ExecutionStrategy
public static interface ExecutionStrategy.Producer
A producer of
Runnable
tasks to run.The
ExecutionStrategy
will repeatedly invokeproduce()
until the producer returns null, indicating that it has nothing more to produce.When no more tasks can be produced, implementations should arrange for the
ExecutionStrategy
to be invoked again in case an external event resumes the tasks production.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Runnable
produce()
Produces a task to be executed.
-