Class AbstractCache

java.lang.Object
is.galia.cache.AbstractCache
Direct Known Subclasses:
HeapCache

public abstract class AbstractCache extends Object
Base class for Cache implementations.
  • Constructor Details

    • AbstractCache

      public AbstractCache()
  • Method Details

    • addObserver

      public void addObserver(CacheObserver observer)
      Parameters:
      observer - Instance to add. A weak reference to it will be maintained, so there will be no need to remove it later.
    • getAllObservers

      protected Set<CacheObserver> getAllObservers()
      Returns:
      Immutable copy of the internal instance. Use addObserver(CacheObserver) to add observers.