All Implemented Interfaces:
Runnable , Executor
Executor ensuring that all
Runnable tasks submitted are executed in order
using the provided
Executor, and serially such that no two will ever be
running at the same time.
Constructor Summary
Constructors
Creates a SerializingExecutor, running tasks using executor.
Method Summary
All Methods Instance Methods Concrete Methods
void
Runs the given runnable strictly after all Runnables that were submitted
before it, and using the executor passed to the constructor. .
void
Constructor Details
SerializingExecutor
public SerializingExecutor (Executor executor)
Creates a SerializingExecutor, running tasks using executor.
Parameters:
executor - Executor in which tasks should be run. Must not be null.
Method Details
execute
Runs the given runnable strictly after all Runnables that were submitted
before it, and using the executor passed to the constructor. .
Specified by:
execute in interface Executor
run
public void run ()
Specified by:
run in interface Runnable