Package tigase.util.processing
Class WorkerThread
java.lang.Object
java.lang.Thread
tigase.util.processing.WorkerThread
- All Implemented Interfaces:
Runnable
Created: Apr 21, 2009 9:02:57 PM
- Author:
- Artur Hefczyc
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
abstract WorkerThread
long
boolean
abstract void
void
run()
void
setQueueMaxSize
(int maxSize) void
shutdown()
int
size()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
log
-
-
Constructor Details
-
WorkerThread
public WorkerThread()
-
-
Method Details
-
getNewInstance
-
process
-
getAverageProcessingTime
public long getAverageProcessingTime() -
getRunsCounter
public long getRunsCounter() -
offer
-
run
public void run() -
setQueueMaxSize
public void setQueueMaxSize(int maxSize) -
size
public int size() -
shutdown
public void shutdown()
-