org.apache.jcs.utils.threads
Class ThreadPool.MonitorRunnable

java.lang.Object
  extended byorg.apache.jcs.utils.threads.ThreadPool.MonitorRunnable
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ThreadPool

class ThreadPool.MonitorRunnable
extends java.lang.Object
implements java.lang.Runnable

Periodically execute an action - cleanup in this case

Author:
asmuts

Field Summary
(package private)  ThreadPool p
           
(package private)  boolean shouldTerminate
           
(package private)  java.lang.Thread t
           
 
Constructor Summary
(package private) ThreadPool.MonitorRunnable(ThreadPool p)
          Constructor for the MonitorRunnable object
 
Method Summary
 void run()
          Main processing method for the MonitorRunnable object
 void terminate()
          Stop the monitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p

ThreadPool p

t

java.lang.Thread t

shouldTerminate

boolean shouldTerminate
Constructor Detail

ThreadPool.MonitorRunnable

ThreadPool.MonitorRunnable(ThreadPool p)
Constructor for the MonitorRunnable object

Parameters:
p -
Method Detail

run

public void run()
Main processing method for the MonitorRunnable object

Specified by:
run in interface java.lang.Runnable

terminate

public void terminate()
Stop the monitor