Class DefaultCacheAdapter

java.lang.Object
io.ebeaninternal.server.cache.DefaultCacheAdapter
All Implemented Interfaces:
io.ebean.cache.ServerCacheManager

public final class DefaultCacheAdapter extends Object implements io.ebean.cache.ServerCacheManager
Adapts SpiCacheManager to ServerCacheManager.

Used to hide the Supplier part of the SpiCacheManager API from public use.

  • Constructor Details

    • DefaultCacheAdapter

      public DefaultCacheAdapter(SpiCacheManager cacheManager)
  • Method Details

    • visitMetrics

      public void visitMetrics(io.ebean.meta.MetricVisitor visitor)
      Specified by:
      visitMetrics in interface io.ebean.cache.ServerCacheManager
    • localL2Caching

      public boolean localL2Caching()
      Specified by:
      localL2Caching in interface io.ebean.cache.ServerCacheManager
    • allRegions

      public List<io.ebean.cache.ServerCacheRegion> allRegions()
      Specified by:
      allRegions in interface io.ebean.cache.ServerCacheManager
    • enabledRegions

      public void enabledRegions(String regions)
      Specified by:
      enabledRegions in interface io.ebean.cache.ServerCacheManager
    • region

      public io.ebean.cache.ServerCacheRegion region(String region)
      Specified by:
      region in interface io.ebean.cache.ServerCacheManager
    • allRegionsEnabled

      public void allRegionsEnabled(boolean enabled)
      Specified by:
      allRegionsEnabled in interface io.ebean.cache.ServerCacheManager
    • naturalKeyCache

      public io.ebean.cache.ServerCache naturalKeyCache(Class<?> beanType)
      Specified by:
      naturalKeyCache in interface io.ebean.cache.ServerCacheManager
    • beanCache

      public io.ebean.cache.ServerCache beanCache(Class<?> beanType)
      Specified by:
      beanCache in interface io.ebean.cache.ServerCacheManager
    • collectionIdsCache

      public io.ebean.cache.ServerCache collectionIdsCache(Class<?> beanType, String propertyName)
      Specified by:
      collectionIdsCache in interface io.ebean.cache.ServerCacheManager
    • queryCache

      public io.ebean.cache.ServerCache queryCache(Class<?> beanType)
      Specified by:
      queryCache in interface io.ebean.cache.ServerCacheManager
    • clear

      public void clear(Class<?> beanType)
      Specified by:
      clear in interface io.ebean.cache.ServerCacheManager
    • clearAll

      public void clearAll()
      Specified by:
      clearAll in interface io.ebean.cache.ServerCacheManager
    • clearAllLocal

      public void clearAllLocal()
      Specified by:
      clearAllLocal in interface io.ebean.cache.ServerCacheManager
    • clearLocal

      public void clearLocal(Class<?> beanType)
      Specified by:
      clearLocal in interface io.ebean.cache.ServerCacheManager