- java.lang.Object
-
- org.hsqldb.lib.HsqlTaskQueue
-
public class HsqlTaskQueue extends java.lang.Object
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.- Since:
- 1.7.2
- Author:
- Campbell Burnet (campbell-burnet@users dot sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description HsqlTaskQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(java.lang.Runnable command)
java.lang.Thread
getTaskRunnerThread()
boolean
isShutdown()
void
restart()
void
shutdownAfterCurrent()
void
shutdownAfterQueued()
void
shutdownImmediately()
-
-
-
Method Detail
-
getTaskRunnerThread
public java.lang.Thread getTaskRunnerThread()
-
isShutdown
public boolean isShutdown()
-
restart
public void restart()
-
execute
public void execute(java.lang.Runnable command) throws java.lang.RuntimeException
- Throws:
java.lang.RuntimeException
-
shutdownAfterQueued
public void shutdownAfterQueued()
-
shutdownAfterCurrent
public void shutdownAfterCurrent()
-
shutdownImmediately
public void shutdownImmediately()
-
-