Package org.eclipse.jetty.util.thread
Interface ExecutionStrategy.Producer
-
- All Known Implementing Classes:
HTTP2Connection.HTTP2Producer,TestConnection
- Enclosing interface:
- ExecutionStrategy
public static interface ExecutionStrategy.ProducerA producer of
Runnabletasks to run.The
ExecutionStrategywill 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
ExecutionStrategyto 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.Runnableproduce()Produces a task to be executed.
-