Package com.tangosol.coherence.servlet
Class IncrementalReapTask
java.lang.Object
com.tangosol.coherence.servlet.AbstractReapTask
com.tangosol.coherence.servlet.IncrementalReapTask
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
SessionHelper.SessionReaperDaemon.IncrementalReapTask
A task that starts a reaping cycle and reaps session in sequence.
-
Field Summary
Fields inherited from class com.tangosol.coherence.servlet.AbstractReapTask
mQueueWaitTime, mStartTime -
Constructor Summary
ConstructorsConstructorDescriptionIncrementalReapTask(SessionHelper sessionHelper, SessionReaperStatistics statistics, Iterator iterIds, int cEstimatedSessions) Construct an IncrementalReapTask. -
Method Summary
Modifier and TypeMethodDescriptionintintprotected voidreap()The task process: Process a portion of the reaping cycle.protected voidSchedules the next reaping cycle.Methods inherited from class com.tangosol.coherence.servlet.AbstractReapTask
checkAndInvalidate, done, getDaemon, getNrOfInvalidatedSessions, getSessionHelper, getSessionIdIterator, isDone, logInvalidationExceptions, run
-
Constructor Details
-
IncrementalReapTask
public IncrementalReapTask(SessionHelper sessionHelper, SessionReaperStatistics statistics, Iterator iterIds, int cEstimatedSessions) Construct an IncrementalReapTask.- Parameters:
sessionHelper- the session helperstatistics- the session reaper statisticsiterIds- an iterator of session IDs to checkcEstimatedSessions- the estimated number of session IDs to check
-
-
Method Details
-
reap
protected void reap()The task process: Process a portion of the reaping cycle.- Specified by:
reapin classAbstractReapTask
-
scheduleNextCycle
protected void scheduleNextCycle()Description copied from class:AbstractReapTaskSchedules the next reaping cycle.- Overrides:
scheduleNextCyclein classAbstractReapTask
-
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
-