Class CacheSetSync<T>

  • All Implemented Interfaces:
    CacheSet<T>

    public class CacheSetSync<T>
    extends java.lang.Object
    implements CacheSet<T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(T e)  
      void clear()  
      boolean contains​(T obj)  
      boolean isEmpty()  
      void remove​(T obj)  
      void setDropHandler​(java.util.function.Consumer<T> dropHandler)
      Register a callback - called when an object is dropped from the cache (optional operation)
      long size()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheSetSync

        public CacheSetSync​(CacheSet<T> cache)
    • Method Detail

      • add

        public void add​(T e)
        Specified by:
        add in interface CacheSet<T>
      • clear

        public void clear()
        Specified by:
        clear in interface CacheSet<T>
      • contains

        public boolean contains​(T obj)
        Specified by:
        contains in interface CacheSet<T>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface CacheSet<T>
      • remove

        public void remove​(T obj)
        Specified by:
        remove in interface CacheSet<T>
      • size

        public long size()
        Specified by:
        size in interface CacheSet<T>
      • setDropHandler

        public void setDropHandler​(java.util.function.Consumer<T> dropHandler)
        Description copied from interface: CacheSet
        Register a callback - called when an object is dropped from the cache (optional operation)
        Specified by:
        setDropHandler in interface CacheSet<T>