public abstract class ProcessingQueue
extends java.lang.Thread
| Constructor and Description |
|---|
ProcessingQueue() |
ProcessingQueue(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(java.lang.Object newItem)
Adds an item to the queue.
|
void |
close()
Finishes up and stops thread.
|
abstract void |
processItem(java.lang.Object nextItem)
Subclasses just implement this to handle items to be processed.
|
void |
run() |
void |
sync()
Blocks until queue is empty.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ProcessingQueue()
public ProcessingQueue(java.lang.String name)
public abstract void processItem(java.lang.Object nextItem)
public void sync()
public void close()
public void addItem(java.lang.Object newItem)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread