Class AgeOutCache<K>

java.lang.Object
org.jgroups.util.AgeOutCache<K>

public class AgeOutCache<K> extends Object
Cache which removes its elements after a certain time
  • Field Details

  • Constructor Details

  • Method Details

    • getTimeout

      public long getTimeout()
    • setTimeout

      public void setTimeout(long timeout)
    • getHandler

      public AgeOutCache.Handler getHandler()
    • setHandler

      public void setHandler(AgeOutCache.Handler handler)
    • add

      public void add(K key)
    • contains

      public boolean contains(K key)
    • remove

      public void remove(K key)
    • removeAll

      public void removeAll(Collection<K> keys)
    • clear

      public void clear()
    • size

      public int size()
    • toString

      public String toString()
      Overrides:
      toString in class Object