|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
wt.queue.PollingQueueThread
This class implements the logic to run a polling or FIFO style queue
Field Summary | |
private static long |
DEFAULT_INTERVAL
|
private boolean |
exitThread
|
private long |
interval
|
private int |
nWakes
|
private static boolean |
POLL_VERBOSE
|
private ProcessingQueue |
queue
|
private QueueMonitorHelper |
queueMonitorHelper
|
private String |
queueName
|
private String |
queueSignal
|
private static boolean |
VERBOSE
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
PollingQueueThread(long interval,
WtQueue aQueue)
PollingQueueThread public constructor Supported API: true |
Method Summary | |
private long |
getInterval(boolean suspend)
Calculate an appropriate sleep time for process thread taking into consideration queue suspension |
private boolean |
queueActive()
check to see if queue is active Supported API: false |
void |
run()
Standard run method for a Thread |
void |
setExit(boolean ex)
Synchronized method to set exit for the polling thread Supported API: true |
void |
setInterval(long interval)
Synchronized method to set polling thread interval Supported API: true |
void |
setQueue(WtQueue queue)
|
private void |
setRunning(ProcessingQueue aQueue,
boolean run)
Sets the queues running state in the db Supported API: true |
void |
startProcessing()
signals the polling thread that there is work to do Supported API: true |
String |
toString()
Polling queue toString method Supported API: true |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private long interval
private int nWakes
private boolean exitThread
private ProcessingQueue queue
private String queueName
private String queueSignal
private QueueMonitorHelper queueMonitorHelper
private static boolean VERBOSE
private static boolean POLL_VERBOSE
private static long DEFAULT_INTERVAL
Constructor Detail |
public PollingQueueThread(long interval, WtQueue aQueue)
interval
- aQueue
- Method Detail |
public void setExit(boolean ex)
ex
- public void setInterval(long interval)
interval
- public void run()
public void startProcessing()
private boolean queueActive()
public String toString()
private void setRunning(ProcessingQueue aQueue, boolean run)
aQueue
- run
- private long getInterval(boolean suspend)
public void setQueue(WtQueue queue)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |