org.ow2.jonas.workcleaner.internal
Class WorkCleanerTimer

java.lang.Object
  extended by java.lang.Thread
      extended by org.ow2.jonas.workcleaner.internal.WorkCleanerTimer
All Implemented Interfaces:
Runnable

public class WorkCleanerTimer
extends Thread

The WorkCleanerTimer executes tasks periodically.

Author:
Francois Fornaciari

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
WorkCleanerTimer()
           
 
Method Summary
 void run()
          Start the thread of this class It will clean all the work entries.
 void setPeriod(int period)
          Set the clean period.
 void setStarted(boolean isStarted)
          Set the timer started value.
 void setWorkCleanerService(WorkCleanerService workCleanerService)
          Set the WorkCleaner service.
 
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
 

Constructor Detail

WorkCleanerTimer

public WorkCleanerTimer()
Method Detail

run

public void run()
Start the thread of this class It will clean all the work entries.

Specified by:
run in interface Runnable
Overrides:
run in class Thread

setWorkCleanerService

public void setWorkCleanerService(WorkCleanerService workCleanerService)
Set the WorkCleaner service.

Parameters:
workCleanerService - The WorkCleaner service to set

setPeriod

public void setPeriod(int period)
Set the clean period.

Parameters:
period - The clean period

setStarted

public void setStarted(boolean isStarted)
Set the timer started value.

Parameters:
isStarted - The timer started value


Copyright © 2010 OW2 Consortium. All Rights Reserved.