Class DefaultEbeanCacheManager

java.lang.Object
com.turbospaces.boot.AbstractBootstrapAware
com.turbospaces.ebean.DefaultEbeanCacheManager
All Implemented Interfaces:
BootstrapAware, CacheManager, io.ebean.cache.ServerCacheFactory, io.ebean.cache.ServerCacheNotify, org.jgroups.blocks.MethodLookup, org.springframework.beans.factory.BeanFactory

public class DefaultEbeanCacheManager extends AbstractBootstrapAware implements io.ebean.cache.ServerCacheNotify, CacheManager
  • Field Details

    • METHODS

      public static com.google.common.collect.ImmutableMap<Short,Method> METHODS
  • Constructor Details

    • DefaultEbeanCacheManager

      public DefaultEbeanCacheManager(org.jgroups.blocks.RpcDispatcher dispatcher, org.jgroups.blocks.RequestOptions requestOptions)
  • Method Details

    • findMethod

      public Method findMethod(short id)
      Specified by:
      findMethod in interface org.jgroups.blocks.MethodLookup
    • cache

      public io.ebean.cache.ServerCache cache(String cacheKey)
      Specified by:
      cache in interface CacheManager
    • createCache

      public io.ebean.cache.ServerCache createCache(io.ebean.cache.ServerCacheConfig config)
      Specified by:
      createCache in interface io.ebean.cache.ServerCacheFactory
    • createCacheNotify

      public io.ebean.cache.ServerCacheNotify createCacheNotify(io.ebean.cache.ServerCacheNotify cacheNotify)
      Specified by:
      createCacheNotify in interface io.ebean.cache.ServerCacheFactory
    • notify

      public void notify(io.ebean.cache.ServerCacheNotification notification)
      Specified by:
      notify in interface io.ebean.cache.ServerCacheNotify
    • onTablesModify

      public void onTablesModify(String line)
      Specified by:
      onTablesModify in interface CacheManager
    • onCachePut

      public void onCachePut(String cacheKey, byte[] id, byte[] value)
      Specified by:
      onCachePut in interface CacheManager
    • onCacheRemove

      public void onCacheRemove(String cacheKey, byte[] id)
      Specified by:
      onCacheRemove in interface CacheManager
    • onCacheClear

      public void onCacheClear(String cacheKey)
      Specified by:
      onCacheClear in interface CacheManager
    • onCacheClearAll

      public void onCacheClearAll(boolean preserveSimple)
      Specified by:
      onCacheClearAll in interface CacheManager
    • simpleCache

      public SimpleCache simpleCache(String name)
      Specified by:
      simpleCache in interface CacheManager
    • clearAllLocal

      public void clearAllLocal()
      Specified by:
      clearAllLocal in interface CacheManager
    • clearAllSimple

      public void clearAllSimple()
      Specified by:
      clearAllSimple in interface CacheManager
    • clearAll

      public void clearAll(boolean preserveSimple)
      Specified by:
      clearAll in interface CacheManager