org.castor.cache.hashbelt.reaper
Class AbstractReaper<K,V>

java.lang.Object
  extended by org.castor.cache.hashbelt.reaper.AbstractReaper<K,V>
Type Parameters:
K - the type of keys maintained by this cache
V - the type of cached values
All Implemented Interfaces:
Reaper<K,V>
Direct Known Subclasses:
NotifyingReaper, NullReaper, RefreshingReaper, ReinsertingReaper

public abstract class AbstractReaper<K,V>
extends Object
implements Reaper<K,V>

Abstract base class all reapers have to extend. It allows the hsahbelt implementation to pass a reference to itself to the reaper.

Since:
1.0
Version:
$Revision: 9040 $ $Date: 2011-08-16 08:26:59 +0200 (Di, 16 Aug 2011) $
Author:
Ralf Joachim

Constructor Summary
AbstractReaper()
           
 
Method Summary
 Cache<K,V> getCache()
          Set the hashbelt this reaper is responsable for.
 void setCache(Cache<K,V> owner)
          Set the hashbelt this reaper is responsable for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.castor.cache.hashbelt.reaper.Reaper
handleExpiredContainer
 

Constructor Detail

AbstractReaper

public AbstractReaper()
Method Detail

setCache

public final void setCache(Cache<K,V> owner)
Set the hashbelt this reaper is responsable for.

Parameters:
owner - The hashbelt.

getCache

public final Cache<K,V> getCache()
Set the hashbelt this reaper is responsable for.

Returns:
The hashbelt.


Copyright © 2012. All Rights Reserved.