org.apache.jcs.utils.servlet.session
Class DistSessionGC

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.apache.jcs.utils.servlet.session.DistSessionGC
All Implemented Interfaces:
ISessionConstants, java.lang.Runnable

class DistSessionGC
extends java.lang.Thread
implements ISessionConstants

Garbage collector for the DistSession objects.

Author:
asmuts

Field Summary
private static long IDLE_PERIOD
           
private static org.apache.commons.logging.Log log
           
private  java.util.Set sessIdSet
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface org.apache.jcs.utils.servlet.session.ISessionConstants
DFLT_INACTIVE_INTERVAL, SESS_CACHE_NAME, SESS_CACHE_SIZE, SESS_INFO_CACHE_NAME, SESS_INFO_CACHE_SIZE
 
Constructor Summary
(package private) DistSessionGC(java.util.Set sessIdSet)
          Constructs with the given set of session id's.
 
Method Summary
(package private)  void notifySession()
          Notifies the garbage collector that there is session available and kicks off the garbage collection process.
 void run()
          Main processing method for the DistSessionGC object
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

log

private static final org.apache.commons.logging.Log log

IDLE_PERIOD

private static final long IDLE_PERIOD
See Also:
Constant Field Values

sessIdSet

private final java.util.Set sessIdSet
Constructor Detail

DistSessionGC

DistSessionGC(java.util.Set sessIdSet)
Constructs with the given set of session id's.

Parameters:
sessIdSet -
Method Detail

notifySession

void notifySession()
Notifies the garbage collector that there is session available and kicks off the garbage collection process.


run

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

Specified by:
run in interface java.lang.Runnable