Class AgeOutCache<K>


  • public class AgeOutCache<K>
    extends java.lang.Object
    Cache which removes its elements after a certain time
    Author:
    Bela Ban
    • Method Detail

      • getTimeout

        public long getTimeout()
      • setTimeout

        public void setTimeout​(long timeout)
      • add

        public void add​(K key)
      • contains

        public boolean contains​(K key)
      • remove

        public void remove​(K key)
      • removeAll

        public void removeAll​(java.util.Collection<K> keys)
      • clear

        public void clear()
      • size

        public int size()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object