Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.coherence.servlet
Class AbstractReapTask

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

All Implemented Interfaces:
Runnable
Direct Known Subclasses:
IncrementalReapTask, ParallelReapTask

Deprecated. In releases following 3.6 customization will be declarative.

public abstract class AbstractReapTask
extends Object
implements 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, Iterator iterIds)
          Deprecated. Construct an AbstractReapTask.

 

Method Summary
protected  void checkAndInvalidate(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  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,
                        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 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 Iterator getSessionIdIterator()
Deprecated. 

checkAndInvalidate

protected void checkAndInvalidate(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.6.0.0

E15725-01


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