Deprecated
CarefulRunnableQueue is better.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| private Thread | |
| private List |
| Access | Constructor and Description |
|---|---|
| public | |
| 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 void |
| gentle_close_requested | back to summary |
|---|---|
| pack-priv boolean gentle_close_requested | |
| t | back to summary |
|---|---|
| private Thread t | |
| taskList | back to summary |
|---|---|
| private List<E> taskList | |
| SimpleRunnableQueue | back to summary |
|---|---|
| public SimpleRunnableQueue(boolean daemon) | |
| SimpleRunnableQueue | back to summary |
|---|---|
| public SimpleRunnableQueue() | |
| 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() | |
| postRunnable | back to summary |
|---|---|
| public synchronized void postRunnable(Runnable r) Implements com. | |
| 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. |
| 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 | |