Package com.turbospaces.ebean
Class JGroupsCacheManager
java.lang.Object
com.turbospaces.boot.AbstractBootstrapAware
com.turbospaces.ebean.JGroupsCacheManager
- All Implemented Interfaces:
com.turbospaces.boot.BootstrapAware,CacheManager,io.ebean.cache.ServerCacheFactory,io.ebean.cache.ServerCacheNotify,io.ebean.cache.ServerCachePlugin,org.jgroups.blocks.MethodLookup,org.springframework.beans.factory.Aware
public class JGroupsCacheManager
extends com.turbospaces.boot.AbstractBootstrapAware
implements org.jgroups.blocks.MethodLookup, CacheManager, io.ebean.cache.ServerCacheNotify
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic shortstatic shortstatic shortstatic shortstatic shortFields inherited from class com.turbospaces.boot.AbstractBootstrapAware
bootstrap, logger -
Constructor Summary
ConstructorsConstructorDescriptionJGroupsCacheManager(org.jgroups.blocks.RpcDispatcher dispatcher, org.jgroups.blocks.RequestOptions requestOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll(boolean preserveSimple) voidvoidio.ebean.cache.ServerCacheFactorycreate(io.ebean.config.DatabaseConfig config, io.ebean.BackgroundExecutor backgroundExecutor) io.ebean.cache.ServerCachecreateCache(io.ebean.cache.ServerCacheConfig config) io.ebean.cache.ServerCacheNotifycreateCacheNotify(io.ebean.cache.ServerCacheNotify cacheNotify) createSimpleCache(String name) findMethod(short id) io.ebean.cache.ServerCachevoidnotify(io.ebean.cache.ServerCacheNotification notification) voidonCacheClear(String cacheKey) voidonCacheClearAll(boolean preserveSimple) voidonCachePut(String cacheKey, byte[] id, byte[] value) voidonCacheRemove(String cacheKey, byte[] id) voidonTablesModify(String line) voidsetBackgroundExecutor(io.ebean.BackgroundExecutor executor) Methods inherited from class com.turbospaces.boot.AbstractBootstrapAware
setBootstrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.ebean.cache.ServerCacheFactory
visit
-
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
-
-
Constructor Details
-
JGroupsCacheManager
public JGroupsCacheManager(org.jgroups.blocks.RpcDispatcher dispatcher, org.jgroups.blocks.RequestOptions requestOptions)
-
-
Method Details
-
findMethod
- Specified by:
findMethodin interfaceorg.jgroups.blocks.MethodLookup
-
setBackgroundExecutor
public void setBackgroundExecutor(io.ebean.BackgroundExecutor executor) - Specified by:
setBackgroundExecutorin interfaceCacheManager
-
create
public io.ebean.cache.ServerCacheFactory create(io.ebean.config.DatabaseConfig config, io.ebean.BackgroundExecutor backgroundExecutor) - Specified by:
createin interfaceio.ebean.cache.ServerCachePlugin
-
createCacheNotify
public io.ebean.cache.ServerCacheNotify createCacheNotify(io.ebean.cache.ServerCacheNotify cacheNotify) - Specified by:
createCacheNotifyin interfaceio.ebean.cache.ServerCacheFactory
-
notify
public void notify(io.ebean.cache.ServerCacheNotification notification) - Specified by:
notifyin interfaceio.ebean.cache.ServerCacheNotify
-
onTablesModify
- Specified by:
onTablesModifyin interfaceCacheManager
-
onCachePut
- Specified by:
onCachePutin interfaceCacheManager
-
onCacheRemove
- Specified by:
onCacheRemovein interfaceCacheManager
-
onCacheClear
- Specified by:
onCacheClearin interfaceCacheManager
-
onCacheClearAll
public void onCacheClearAll(boolean preserveSimple) - Specified by:
onCacheClearAllin interfaceCacheManager
-
getCache
- Specified by:
getCachein interfaceCacheManager
-
clearAllLocal
public void clearAllLocal()- Specified by:
clearAllLocalin interfaceCacheManager
-
clearAllSimple
public void clearAllSimple()- Specified by:
clearAllSimplein interfaceCacheManager
-
clearAll
public void clearAll(boolean preserveSimple) - Specified by:
clearAllin interfaceCacheManager
-
createSimpleCache
- Specified by:
createSimpleCachein interfaceCacheManager
-
createCache
public io.ebean.cache.ServerCache createCache(io.ebean.cache.ServerCacheConfig config) - Specified by:
createCachein interfaceio.ebean.cache.ServerCacheFactory
-