| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final MLogger | |
| private boolean | |
| private List | |
| private CarefulRunnableQueue. | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public RunnableQueue | |
| private synchronized void | |
| public synchronized void | close(boolean
Should be regarded as
a hint, not a guarantee. If true, pending,
not-yet-performed tasks will be skipped,
if possible.
Currently executing tasks may or
may not be interrupted. If false, all
previously scheduled tasks will be
completed prior to clean-up. The method
returns immediately regardless. skip_remaining_tasks)Implements com. Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold. |
| public synchronized void | close()
Implements com. Clean-up resources held by this asynchronous runner as soon as possible. |
| private synchronized Runnable | |
| public synchronized List | getStrandedTasks()
Implements com. makes available any tasks that were unperformed when this AsynchronousRunner was closed, either explicitly using close() or close( true ), or implicitly because some failure or corruption killed the Object (most likely a Thread interruption. |
| public synchronized void |
| gentle_close_requested | back to summary |
|---|---|
| private boolean gentle_close_requested | |
| logger | back to summary |
|---|---|
| private static final MLogger logger | |
| shutdown_on_interrupt | back to summary |
|---|---|
| private boolean shutdown_on_interrupt | |
| strandedTasks | back to summary |
|---|---|
| private List<E> strandedTasks | |
| t | back to summary |
|---|---|
| private CarefulRunnableQueue. | |
| taskList | back to summary |
|---|---|
| private List<E> taskList | |
| CarefulRunnableQueue | back to summary |
|---|---|
| public CarefulRunnableQueue(boolean daemon, boolean shutdown_on_interrupt) | |
| asRunnableQueue | back to summary |
|---|---|
| public RunnableQueue asRunnableQueue() Implements com. | |
| awaitTask | back to summary |
|---|---|
| private synchronized void awaitTask() throws InterruptedException | |
| close | back to summary |
|---|---|
| public synchronized void close(boolean skip_remaining_tasks) Implements com. Doc from com. Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold.
| |
| close | back to summary |
|---|---|
| public synchronized void close() Implements com. Doc from com. Clean-up resources held by this asynchronous runner as soon as possible. Remaining tasks are skipped if possible, and any tasks executing when close() is called may or may not be interrupted. Equivalent to close( true ). | |
| dequeueRunnable | back to summary |
|---|---|
| private synchronized Runnable dequeueRunnable() | |
| getStrandedTasks | back to summary |
|---|---|
| public synchronized List Implements com. Doc from com. makes available any tasks that were unperformed when this AsynchronousRunner was closed, either explicitly using close() or close( true ), or implicitly because some failure or corruption killed the Object (most likely a Thread interruption.
| |
| postRunnable | back to summary |
|---|---|
| public synchronized void postRunnable(Runnable r) Implements com. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides java. Implements java. This method is run by the thread when it executes. |
| public synchronized void | |
| private synchronized boolean |
| should_stop | back to summary |
|---|---|
| pack-priv boolean should_stop | |
| TaskThread | back to summary |
|---|---|
| pack-priv TaskThread() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a | |
| safeStop | back to summary |
|---|---|
| public synchronized void safeStop() | |
| shouldStop | back to summary |
|---|---|
| private synchronized boolean shouldStop() | |