Package com.turbospaces.ebean
Class ReplicatedEbeanCache
java.lang.Object
com.turbospaces.ebean.ReplicatedEbeanCache
- All Implemented Interfaces:
LocalCache,ReplicatedCache,io.ebean.cache.ServerCache
-
Constructor Summary
ConstructorsConstructorDescriptionReplicatedEbeanCache(String cacheKey, org.jgroups.blocks.RpcDispatcher dispatcher, org.jgroups.blocks.RequestOptions requestOptions, io.ebean.cache.ServerCache local, io.ebean.cache.ServerCacheConfig config) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.ebean.cache.ServerCache
getAll, putAll, removeAll, unwrap, visit
-
Constructor Details
-
ReplicatedEbeanCache
public ReplicatedEbeanCache(String cacheKey, org.jgroups.blocks.RpcDispatcher dispatcher, org.jgroups.blocks.RequestOptions requestOptions, io.ebean.cache.ServerCache local, io.ebean.cache.ServerCacheConfig config)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceio.ebean.cache.ServerCache
-
get
- Specified by:
getin interfaceio.ebean.cache.ServerCache
-
hitRatio
public int hitRatio()- Specified by:
hitRatioin interfaceio.ebean.cache.ServerCache
-
statistics
public io.ebean.cache.ServerCacheStatistics statistics(boolean reset) - Specified by:
statisticsin interfaceio.ebean.cache.ServerCache
-
put
- Specified by:
putin interfaceio.ebean.cache.ServerCache
-
remove
- Specified by:
removein interfaceio.ebean.cache.ServerCache
-
clear
public void clear()- Specified by:
clearin interfaceio.ebean.cache.ServerCache
-
onPut
public void onPut(byte[] keyData, byte[] valueData) - Specified by:
onPutin interfaceReplicatedCache
-
onRemove
public void onRemove(byte[] data) - Specified by:
onRemovein interfaceReplicatedCache
-
onClear
public int onClear()- Specified by:
onClearin interfaceLocalCache
-
type
public io.ebean.cache.ServerCacheType type()- Specified by:
typein interfaceReplicatedCache
-