Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.coherence.servlet
Class AbstractReapTask

java.lang.Object
  extended by com.tangosol.coherence.servlet.AbstractReapTask

All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
IncrementalReapTask, ParallelReapTask

Deprecated. In releases following 3.6 customization will be declarative.

public abstract class AbstractReapTask
extends java.lang.Object
implements java.lang.Runnable

Base class for reaping tasks. It takes care of scheduling the next reap cycle and provides common data members.


Field Summary
protected  long mStartTime
          Deprecated. The time stamp for when this reap cycle started.

 

Constructor Summary
AbstractReapTask(SessionHelper sessionHelper, SessionReaperStatistics statistics, java.util.Iterator iterIds)
          Deprecated. Construct an AbstractReapTask.

 

Method Summary
protected  void checkAndInvalidate(java.lang.String id)
          Deprecated. Check the specified session to see if it has expired, and in that case invalidate it.
protected  void done()
          Deprecated. Indicate that the reaping is done in this cycle.
protected  SessionHelper.SessionReaperDaemon getDaemon()
          Deprecated.  
protected  int getNrOfInvalidatedSessions()
          Deprecated.  
protected  SessionHelper getSessionHelper()
          Deprecated.  
protected  java.util.Iterator getSessionIdIterator()
          Deprecated.  
protected  boolean isDone()
          Deprecated.  
protected abstract  void reap()
          Deprecated. The method that implements the actual reaping.
 void run()
          Deprecated. The task process: Process a portion of the reaping cycle.
protected  void scheduleNextCycle()
          Deprecated. Schedules the next reaping cycle.

 

Field Detail

mStartTime

protected long mStartTime
Deprecated. 
The time stamp for when this reap cycle started.

Constructor Detail

AbstractReapTask

public AbstractReapTask(SessionHelper sessionHelper,
                        SessionReaperStatistics statistics,
                        java.util.Iterator iterIds)
Deprecated. 
Construct an AbstractReapTask.
Parameters:
iterIds - an iterator of session IDs to check
sessionHelper -

Method Detail

run

public void run()
Deprecated. 
The task process: Process a portion of the reaping cycle.
Specified by:
run in interface java.lang.Runnable
See Also:
Thread.run()

scheduleNextCycle

protected void scheduleNextCycle()
Deprecated. 
Schedules the next reaping cycle.

done

protected void done()
Deprecated. 
Indicate that the reaping is done in this cycle.

reap

protected abstract void reap()
Deprecated. 
The method that implements the actual reaping.

getSessionIdIterator

protected java.util.Iterator getSessionIdIterator()
Deprecated. 

checkAndInvalidate

protected void checkAndInvalidate(java.lang.String id)
Deprecated. 
Check the specified session to see if it has expired, and in that case invalidate it.
Parameters:
id - a session id

getSessionHelper

protected SessionHelper getSessionHelper()
Deprecated. 

getDaemon

protected SessionHelper.SessionReaperDaemon getDaemon()
Deprecated. 

isDone

protected boolean isDone()
Deprecated. 

getNrOfInvalidatedSessions

protected int getNrOfInvalidatedSessions()
Deprecated. 

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.