Package com.turbospaces.ebean
Class ReplicatedEbeanCache
java.lang.Object
com.turbospaces.boot.AbstractBootstrapAware
com.turbospaces.ebean.ReplicatedEbeanCache
- All Implemented Interfaces:
com.turbospaces.boot.BootstrapAware,LocalCache,ReplicatedCache,io.ebean.cache.ServerCache,org.springframework.beans.factory.Aware
public class ReplicatedEbeanCache
extends com.turbospaces.boot.AbstractBootstrapAware
implements ReplicatedCache
-
Field Summary
Fields inherited from class com.turbospaces.boot.AbstractBootstrapAware
bootstrap, logger -
Constructor Summary
ConstructorsConstructorDescriptionReplicatedEbeanCache(String cacheKey, org.jgroups.blocks.RpcDispatcher dispatcher, LocalCache local, io.ebean.cache.ServerCacheConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()voidclear()inthitRatio()intonClear()voidonPut(byte[] keyData, byte[] valueData) voidonRemove(byte[] data) voidvoidvoidsetBootstrap(com.turbospaces.boot.Bootstrap bootstrap) intsize()io.ebean.cache.ServerCacheStatisticsstatistics(boolean reset) io.ebean.cache.ServerCacheTypetype()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, LocalCache 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
-
setBootstrap
public void setBootstrap(com.turbospaces.boot.Bootstrap bootstrap) - Specified by:
setBootstrapin interfacecom.turbospaces.boot.BootstrapAware- Specified by:
setBootstrapin interfaceReplicatedCache- Overrides:
setBootstrapin classcom.turbospaces.boot.AbstractBootstrapAware
-
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
-
cleanUp
public void cleanUp()- Specified by:
cleanUpin interfaceLocalCache
-
type
public io.ebean.cache.ServerCacheType type()- Specified by:
typein interfaceReplicatedCache
-