Class NotifyingReaper

  • All 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.

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

      Constructors 
      Constructor Description
      NotifyingReaper()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void handleExpiredContainer​(Container expiredContainer)
      Methode called with a container that has expired before the container is garbage collected.
      protected abstract void handleExpiredObject​(java.lang.Object 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
    • Constructor Detail

      • NotifyingReaper

        public NotifyingReaper()
    • Method Detail

      • handleExpiredContainer

        public final void handleExpiredContainer​(Container 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​(java.lang.Object expiredObject)
        Methode called with an object that has expired before it is garbage collected.
        Parameters:
        expiredObject - The object that has expired.