Class JGroupsCacheManager

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

public class JGroupsCacheManager extends AbstractBootstrapAware implements org.jgroups.blocks.MethodLookup, CacheManager, io.ebean.cache.ServerCacheFactory, io.ebean.cache.ServerCacheNotify
  • Field Details

    • METHOD_ON_CACHE_PUT

      public static short METHOD_ON_CACHE_PUT
    • METHOD_ON_CHANGE_REMOVE

      public static short METHOD_ON_CHANGE_REMOVE
    • METHOD_ON_CACHE_CLEAR

      public static short METHOD_ON_CACHE_CLEAR
    • METHOD_ON_MODIFIED

      public static short METHOD_ON_MODIFIED
    • METHOD_ON_CACHE_CLEAR_ALL

      public static short METHOD_ON_CACHE_CLEAR_ALL
    • METHODS

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

    • JGroupsCacheManager

      public JGroupsCacheManager(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
    • create

      public io.ebean.cache.ServerCacheFactory create(io.ebean.config.DatabaseConfig config, io.ebean.BackgroundExecutor backgroundExecutor)
      Specified by:
      create in interface io.ebean.cache.ServerCachePlugin
    • 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
    • getCache

      public io.ebean.cache.ServerCache getCache(String cacheKey)
      Specified by:
      getCache 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
    • createSimpleCache

      public SimpleCache createSimpleCache(String name)
      Specified by:
      createSimpleCache in interface CacheManager
    • createCache

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