org.castor.cache.hashbelt.reaper
Class NotifyingReaper<K,V>
java.lang.Object
org.castor.cache.hashbelt.reaper.AbstractReaper<K,V>
org.castor.cache.hashbelt.reaper.NotifyingReaper<K,V>
- Type Parameters:
K - the type of keys maintained by this cacheV - the type of cached values
- All Implemented Interfaces:
- Reaper<K,V>
public abstract class NotifyingReaper<K,V>
- extends AbstractReaper<K,V>
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.
- Since:
- 1.0
- Version:
- $Revision: 9040 $ $Date: 2011-08-16 08:26:59 +0200 (Di, 16 Aug 2011) $
- Author:
- Gregory Block
|
Method Summary |
void |
handleExpiredContainer(Container<K,V> expiredContainer)
Methode called with a container that has expired before the container is garbage
collected. |
protected abstract void |
handleExpiredObject(V expiredObject)
Methode called with an object that has expired before it is garbage collected. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotifyingReaper
public NotifyingReaper()
handleExpiredContainer
public final void handleExpiredContainer(Container<K,V> expiredContainer)
- Methode called with a container that has expired before the container is garbage
collected.
- Parameters:
expiredContainer - The container that has expired.
handleExpiredObject
protected abstract void handleExpiredObject(V expiredObject)
- Methode called with an object that has expired before it is garbage collected.
- Parameters:
expiredObject - The object that has expired.
Copyright © 2012. All Rights Reserved.