execute(Runnable, Executor) method that happens-after another call A to the
same method, will result in B's task running after A's.
| Modifier and Type | Class and Description |
|---|---|
| public static class | TaskQueue.
Structure holding the queue state at close time. |
| private class | |
| private static class | TaskQueue.
Execute another task |
| private static interface | TaskQueue.
A task of this queue. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Set | |
| private Executor | |
| private TaskQueue. | |
| private Thread | |
| pack-priv static final Logger | |
| private final Runnable | |
| private final LinkedList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TaskQueue. | |
| private TaskQueue. | |
| public void | |
| public boolean | |
| private void | |
| public CountDownLatch | |
| public CountDownLatch |
| closed | back to summary |
|---|---|
| private boolean closed | |
| continuations | back to summary |
|---|---|
| private final Set<TaskQueue. | |
| currentExecutor | back to summary |
|---|---|
| private Executor currentExecutor | |
| currentTask | back to summary |
|---|---|
| private TaskQueue. | |
| currentThread | back to summary |
|---|---|
| private Thread currentThread | |
| log | back to summary |
|---|---|
| pack-priv static final Logger log | |
| runner | back to summary |
|---|---|
| private final Runnable runner | |
| tasks | back to summary |
|---|---|
| private final LinkedList<TaskQueue. | |
| TaskQueue | back to summary |
|---|---|
| public TaskQueue() | |
| close | back to summary |
|---|---|
| public TaskQueue. Close the queue.
| |
| continuationTask | back to summary |
|---|---|
| private TaskQueue. Return a continuation task for the current task execution.
| |
| execute | back to summary |
|---|---|
| public void execute(Runnable task, Executor executor) throws RejectedExecutionException Run a task.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Test if the task queue is empty and no current executor is running anymore. | |
| run | back to summary |
|---|---|
| private void run() | |
| suspend | back to summary |
|---|---|
| public CountDownLatch suspend() | |
| suspend | back to summary |
|---|---|
| public CountDownLatch suspend(Consumer<WorkerExecutor. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Runnable | |
| private final Thread | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Runnable | |
| public Thread | |
| public List | |
| public List |
| activeTask | back to summary |
|---|---|
| private final Runnable activeTask | |
| activeThread | back to summary |
|---|---|
| private final Thread activeThread | |
| suspendedTasks | back to summary |
|---|---|
| private final List<Runnable> suspendedTasks | |
| suspendedThreads | back to summary |
|---|---|
| private final List<Thread> suspendedThreads | |
| CloseResult | back to summary |
|---|---|
| private CloseResult(Thread activeThread, Runnable activeTask, List<Thread> suspendedThreads, List<Runnable> suspendedTasks) | |
| activeTask | back to summary |
|---|---|
| public Runnable activeTask() | |
| activeThread | back to summary |
|---|---|
public Thread activeThread()
| |
| suspendedTasks | back to summary |
|---|---|
| public List | |
| suspendedThreads | back to summary |
|---|---|
| public List | |
| Modifier and Type | Field and Description |
|---|---|
| private final Executor | |
| private Runnable | |
| private static final int | |
| private static final int | |
| private static final int | |
| private int | |
| private final TaskQueue. | |
| private final Thread |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | resume(Runnable
called when the task is resumed callback)Implements io. Resume the task, the |
| public boolean |
| executor | back to summary |
|---|---|
| private final Executor executor | |
| latch | back to summary |
|---|---|
| private Runnable latch | |
| ST_CREATED | back to summary |
|---|---|
| private static final int ST_CREATED | |
| ST_RESUMED | back to summary |
|---|---|
| private static final int ST_RESUMED | |
| ST_SUSPENDED | back to summary |
|---|---|
| private static final int ST_SUSPENDED | |
| status | back to summary |
|---|---|
| private int status | |
| task | back to summary |
|---|---|
| private final TaskQueue. | |
| thread | back to summary |
|---|---|
| private final Thread thread | |
| ContinuationTask | back to summary |
|---|---|
| public ContinuationTask(TaskQueue. | |
| resume | back to summary |
|---|---|
| public void resume(Runnable callback) Implements io. Doc from io. Resume the task, the | |
| suspend | back to summary |
|---|---|
| public boolean suspend() | |
| Access | Constructor and Description |
|---|---|
| public |
| exec | back to summary |
|---|---|
| private final Executor exec | |
| runnable | back to summary |
|---|---|
| private final Runnable runnable | |
| ExecuteTask | back to summary |
|---|---|
| public ExecuteTask(Runnable runnable, Executor exec) | |