Class AbstractCache

java.lang.Object
org.nuxeo.ecm.core.cache.AbstractCache
All Implemented Interfaces:
Cache, CacheManagement
Direct Known Subclasses:
InMemoryCacheImpl

public abstract class AbstractCache extends Object implements CacheManagement
Abstract class to be extended to provide new cache implementation
Since:
6.0
  • Field Details

    • name

      protected final String name
    • ttl

      public final long ttl
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: Cache
      Get cache name as specified in the descriptor
      Specified by:
      getName in interface Cache
      Returns:
      the cache name
    • start

      public void start()
      Description copied from interface: CacheManagement
      Starts this cache.
      Specified by:
      start in interface CacheManagement
    • stop

      public void stop()
      Description copied from interface: CacheManagement
      Stops this cache and releases related resources.
      Specified by:
      stop in interface CacheManagement
    • toString

      public String toString()
      Overrides:
      toString in class Object