soap tutorial

adriani.jws.template.db
Class CleanUpThread

java.lang.Object
  extended by java.lang.Thread
      extended by adriani.jws.template.db.CleanUpThread
All Implemented Interfaces:
java.lang.Runnable

 class CleanUpThread
extends java.lang.Thread

Helper thread taking care to call the cleanUp() method of the main class (ObjectPool).

See Also:
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, 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

running

protected boolean running
The boolean flag used to check condition of the endless loop in the run() method.


leadingName

protected static java.lang.String leadingName
Beginning of each logging message produced by this class

Constructor Detail

CleanUpThread

CleanUpThread(ObjectPool pool,
              int sleepTime)
Constructor.

Parameters:
pool - the ObjectPool target of the cleanUp() method
sleepTime - the sleep time for this thread, in seconds
Method Detail

run

public void run()
This methods runs forever, calling the cleanUp() method every sleepTime seconds.
To terminate this thread the user should invoke the shutdown() method.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

Build 18/09/2012

Morpheus Quality Technologies - Making the Zion software
Copyright © 2009-2013 Morpheus Quality Technologies. All Rights Reserved