An Executor that uses an internal SerializedInvoker to ensure that only one of the submitted tasks is running
at any time.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | SerializedExecutor.
Error handling task If a submitted task implements this interface, it will be passed any exceptions thrown when running the task. |
| Modifier and Type | Field and Description |
|---|---|
| private final Executor | |
| private final SerializedInvoker |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(Runnable
The task to invoke task)Implements java. Arrange for a task to be executed, mutually excluded from other tasks. |
| public void | |
| protected void |
| _executor | back to summary |
|---|---|
| private final Executor _executor | |
| _invoker | back to summary |
|---|---|
| private final SerializedInvoker _invoker | |
| SerializedExecutor | back to summary |
|---|---|
| public SerializedExecutor() | |
| SerializedExecutor | back to summary |
|---|---|
| public SerializedExecutor(Executor executor) | |
| execute | back to summary |
|---|---|
| public void execute(Runnable task) Implements java. Arrange for a task to be executed, mutually excluded from other tasks.
This is equivalent to executing any | |
| execute | back to summary |
|---|---|
| public void execute(Runnable... tasks) Arrange for tasks to be executed, mutually excluded from other tasks.
This is equivalent to executing any
| |
| onError | back to summary |
|---|---|
| protected void onError(Runnable task, Throwable t) | |
If a submitted task implements this interface, it will be passed any exceptions thrown when running the task.