|
soap tutorial | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
adriani.jws.template.db.CleanUpThread
class CleanUpThread
Helper thread taking care to call the cleanUp()
method of the main class (ObjectPool
).
ObjectPool
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected static java.lang.String |
leadingName
Beginning of each logging message produced by this class |
protected boolean |
running
The boolean flag used to check condition of the endless loop in the run() method. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
CleanUpThread(ObjectPool pool,
int sleepTime)
Constructor. |
Method Summary | |
---|---|
void |
run()
This methods runs forever, calling the cleanUp() method every sleepTime seconds. |
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 boolean running
run()
method.
protected static java.lang.String leadingName
Constructor Detail |
---|
CleanUpThread(ObjectPool pool, int sleepTime)
pool
- the ObjectPool
target of the cleanUp()
methodsleepTime
- the sleep time for this thread, in secondsMethod Detail |
---|
public void run()
cleanUp()
method every sleepTime seconds.shutdown()
method.
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
Build 19/03/2014 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |