Package com.tangosol.coherence.servlet
Class ParallelReapTask
- java.lang.Object
-
- com.tangosol.coherence.servlet.AbstractReapTask
-
- com.tangosol.coherence.servlet.ParallelReapTask
-
- All Implemented Interfaces:
Runnable
public class ParallelReapTask extends AbstractReapTask
This reaping task reaps the sessions in parallel instead of in sequence. It uses a work manager to execute each session invalidation so the degree of parallelism can be controlled by configuring the number of threads in the work manager.- Author:
- Torkel Dominique
-
-
Field Summary
-
Fields inherited from class com.tangosol.coherence.servlet.AbstractReapTask
mQueueWaitTime, mStartTime
-
-
Constructor Summary
Constructors Constructor Description ParallelReapTask(SessionHelper sessionHelper, SessionReaperStatistics statistics, Iterator iterIds, WorkManager workManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
reap()
Schedules a reap work for each session.-
Methods inherited from class com.tangosol.coherence.servlet.AbstractReapTask
checkAndInvalidate, done, getDaemon, getNrOfInvalidatedSessions, getSessionHelper, getSessionIdIterator, isDone, logInvalidationExceptions, run, scheduleNextCycle
-
-
-
-
Constructor Detail
-
ParallelReapTask
public ParallelReapTask(SessionHelper sessionHelper, SessionReaperStatistics statistics, Iterator iterIds, WorkManager workManager)
-
-
Method Detail
-
reap
protected void reap()
Schedules a reap work for each session.- Specified by:
reap
in classAbstractReapTask
-
-