Class LRUHashbelt

  • All Implemented Interfaces:
    java.util.Map<java.lang.Object,​java.lang.Object>, Cache

    public final class LRUHashbelt
    extends AbstractHashbelt
    A type of hashbelt that moves requested elements back into the first container when a get or add occurs.

    Objects which are rarely used will work their way down the conveyor belt, and eventually be discarded, if they are not referenced.

    Since:
    1.0
    Version:
    $Revision: 8102 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
    Author:
    Ralf Joachim
    • Field Detail

    • Constructor Detail

      • LRUHashbelt

        public LRUHashbelt()
    • Method Detail

      • getType

        public java.lang.String getType()
        Indicates the type of this cache.
        Returns:
        The cache type.
      • get

        public java.lang.Object get​(java.lang.Object key)
      • put

        public java.lang.Object put​(java.lang.Object key,
                                    java.lang.Object value)
      • remove

        public java.lang.Object remove​(java.lang.Object key)
      • putAll

        public void putAll​(java.util.Map<? extends java.lang.Object,​? extends java.lang.Object> map)