| |
|
| java.lang.Object org.hsqldb.lib.HsqlTaskQueue
HsqlTaskQueue | public class HsqlTaskQueue (Code) | | Provides very simple queued execution of Runnable objects in a background
thread. The underlying queue is an HsqlDeque instance, an array-based
circular queue implementation with automatic capacity expansion.
author: boucherb@users version: 1.7.2 since: 1.7.2 |
Inner Class :protected class TaskRunner implements Runnable | |
SHUTDOWNTASK | final protected static Runnable SHUTDOWNTASK(Code) | | Special queue element to signal termination
|
isShutdown | protected volatile boolean isShutdown(Code) | | true if thread should shut down after processing current task.
Once set true, stays true forever
|
taskRunner | final protected TaskRunner taskRunner(Code) | | |
taskRunnerThread | protected Thread taskRunnerThread(Code) | | The thread used to process commands
|
HsqlTaskQueue | public HsqlTaskQueue()(Code) | | |
clearThread | protected synchronized void clearThread()(Code) | | |
getTaskRunnerThread | public synchronized Thread getTaskRunnerThread()(Code) | | |
isShutdown | public boolean isShutdown()(Code) | | |
restart | public synchronized void restart()(Code) | | |
shutdownAfterCurrent | public synchronized void shutdownAfterCurrent()(Code) | | |
shutdownAfterQueued | public synchronized void shutdownAfterQueued()(Code) | | |
shutdownImmediately | public synchronized void shutdownImmediately()(Code) | | |
|
|
|