org.castor.cache.hashbelt.reaper

Class NotifyingReaper

Implemented Interfaces:
Reaper

public abstract class NotifyingReaper
extends AbstractReaper

Does the obvious: Calls a handleExpiredObject method for each object in the container. Note that this is an abstract class; you must supply the implementation of timeExpired().

At the end, the objects in the container have been expired and there's no record of them in the hashbelt.

Version:
$Revision: 6230 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Gregory Block
Since:
1.0

Method Summary

void
handleExpiredContainer(Container expiredContainer)
protected abstract void
handleExpiredObject(Object expiredObject)
Methode called with an object that has expired before it is garbage collected.

Methods inherited from class org.castor.cache.hashbelt.reaper.AbstractReaper

getCache, setCache

Method Details

handleExpiredContainer

public final void handleExpiredContainer(Container expiredContainer)
Specified by:
handleExpiredContainer in interface Reaper

handleExpiredObject

protected abstract void handleExpiredObject(Object expiredObject)
Methode called with an object that has expired before it is garbage collected.
Parameters:
expiredObject - The object that has expired.

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com