|
||||||||||
| 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()
Method description |
long |
getRunsCounter()
Method description |
boolean |
offer(QueueItem item)
Method description |
abstract void |
process(QueueItem item)
Method description |
void |
run()
Method description |
void |
setQueueMaxSize(int maxSize)
Method description |
void |
shutdown()
|
int |
size()
Method description |
| Methods inherited from class java.lang.Thread |
|---|
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, yield |
| Methods inherited from class java.lang.Object |
|---|
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()
public abstract void process(QueueItem item)
item - public long getAverageProcessingTime()
public long getRunsCounter()
public boolean offer(QueueItem item)
item -
public void run()
run in interface Runnablerun in class Threadpublic void setQueueMaxSize(int maxSize)
maxSize - public int size()
public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||