Package org.eclipse.jetty.util.thread
Class SerializedExecutor
java.lang.Object
org.eclipse.jetty.util.thread.SerializedExecutor
- All Implemented Interfaces:
Executor
Ensures serial execution of submitted tasks.
An Executor that uses an internal SerializedInvoker
to ensure that only one of the submitted tasks is running
at any time.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Error handling task -
Constructor Summary
-
Method Summary
-
Constructor Details
-
SerializedExecutor
public SerializedExecutor() -
SerializedExecutor
-
-
Method Details
-
onError
-
execute
Arrange for a task to be executed, mutually excluded from other tasks. This is equivalent to executing anyRunnable
returned from the internalSerializedInvoker.offer(Runnable)
method. -
execute
Arrange for tasks to be executed, mutually excluded from other tasks. This is equivalent to executing anyRunnable
returned from the internalSerializedInvoker.offer(Runnable)
method.- Parameters:
tasks
- The tasks to invoke
-