CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.coherence.servlet
Class SessionHelper.SessionReaperDaemon.IncrementalReapTask

java.lang.Object
  extended by com.tangosol.coherence.servlet.SessionHelper.SessionReaperDaemon.IncrementalReapTask
All Implemented Interfaces:
Runnable
Enclosing class:
SessionHelper.SessionReaperDaemon

public class SessionHelper.SessionReaperDaemon.IncrementalReapTask
extends Object
implements Runnable

A task that starts a reaping cycle.


Constructor Summary
SessionHelper.SessionReaperDaemon.IncrementalReapTask(Iterator iterIds, int cEstimatedSessions)
          Construct an IncrementalReapTask.
 
Method Summary
 int getActualSessionCount()
           
 int getSessionChunkCount()
           
 int getSessionChunkMillis()
           
protected  Iterator getSessionIdIterator()
           
protected  void incActualSessionCount()
          Increment the number of sessions actually checked so far.
 void run()
          The task process: Process a portion of the reaping cycle.
 

Constructor Detail

SessionHelper.SessionReaperDaemon.IncrementalReapTask

public SessionHelper.SessionReaperDaemon.IncrementalReapTask(Iterator iterIds,
                                                             int cEstimatedSessions)
Construct an IncrementalReapTask.

Parameters:
iterIds - an iterator of session IDs to check
cEstimatedSessions - the estimated number of session IDs to check
Method Detail

run

public void run()
The task process: Process a portion of the reaping cycle.

Specified by:
run in interface Runnable

getSessionIdIterator

protected Iterator getSessionIdIterator()
Returns:
the iterator of session ids to check

getSessionChunkCount

public int getSessionChunkCount()
Returns:
the number of sessions to process at a time

getSessionChunkMillis

public int getSessionChunkMillis()
Returns:
the number of milliseconds allocated to each chunk

getActualSessionCount

public int getActualSessionCount()
Returns:
the number of sessions actually checked so far

incActualSessionCount

protected void incActualSessionCount()
Increment the number of sessions actually checked so far.


CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation