|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
tigase.util.WorkerThread
public abstract class WorkerThread
Created: Apr 21, 2009 9:02:57 PM
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected static Logger |
log
Variable log is a class logger. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
WorkerThread()
|
Method Summary | |
---|---|
long |
getAverageProcessingTime()
Method description |
abstract WorkerThread |
getNewInstance(PriorityQueueAbstract<QueueItem> queue)
Method description |
long |
getRunsCounter()
Method description |
abstract void |
process(QueueItem item)
Method description |
void |
run()
Method description |
void |
setQueue(PriorityQueueAbstract<QueueItem> queue)
Method description |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, 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, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Logger log
log
is a class logger.
Constructor Detail |
---|
public WorkerThread()
Method Detail |
---|
public abstract WorkerThread getNewInstance(PriorityQueueAbstract<QueueItem> queue)
queue
-
public abstract void process(QueueItem item)
item
- public long getAverageProcessingTime()
public long getRunsCounter()
public void run()
run
in interface Runnable
run
in class Thread
public void setQueue(PriorityQueueAbstract<QueueItem> queue)
queue
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |