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

java.lang.Object
  extended by org.castor.cache.hashbelt.reaper.AbstractReaper<K,V>
      extended by org.castor.cache.hashbelt.reaper.NullReaper<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>

public final class NullReaper<K,V>
extends AbstractReaper<K,V>

The simplest of all possible expiration handlers. It does nothing.

Having said that, here's what happens when we do nothing:

  1. The hashbelt loses a reference to the object.
  2. Garbage collection has a chance to work.

The point is that, even when we do nothing, the hashbelt changes.

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

Constructor Summary
NullReaper()
           
 
Method Summary
 void handleExpiredContainer(Container<K,V> expiredContainer)
          Methode called with a container that has expired before the container is garbage collected.
 
Methods inherited from class org.castor.cache.hashbelt.reaper.AbstractReaper
getCache, setCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullReaper

public NullReaper()
Method Detail

handleExpiredContainer

public 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.


Copyright © 2012. All Rights Reserved.