Package com.turbospaces.ebean
Class MockCacheManager
java.lang.Object
com.turbospaces.boot.AbstractBootstrapAware
com.turbospaces.ebean.MockCacheManager
- All Implemented Interfaces:
com.turbospaces.boot.BootstrapAware,CacheManager,io.ebean.cache.ServerCacheFactory,io.ebean.cache.ServerCachePlugin,org.springframework.beans.factory.Aware
public class MockCacheManager
extends com.turbospaces.boot.AbstractBootstrapAware
implements CacheManager
-
Field Summary
Fields inherited from class com.turbospaces.boot.AbstractBootstrapAware
bootstrap, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll()voidio.ebean.cache.ServerCacheFactorycreate(io.ebean.DatabaseBuilder databaseBuilder, io.ebean.BackgroundExecutor backgroupExecutor) io.ebean.cache.ServerCachecreateCache(io.ebean.cache.ServerCacheConfig config) io.ebean.cache.ServerCacheNotifycreateCacheNotify(io.ebean.cache.ServerCacheNotify listener) io.ebean.cache.ServerCachevoidsetBackgroundExecutor(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 com.turbospaces.ebean.CacheManager
onCacheClear, onCacheClearAll, onCacheClearAll, onCachePut, onCacheRemove, onTablesModifyMethods inherited from interface io.ebean.cache.ServerCacheFactory
visit
-
Constructor Details
-
MockCacheManager
public MockCacheManager()
-
-
Method Details
-
setBackgroundExecutor
public void setBackgroundExecutor(io.ebean.BackgroundExecutor executor) - Specified by:
setBackgroundExecutorin interfaceCacheManager
-
create
public io.ebean.cache.ServerCacheFactory create(io.ebean.DatabaseBuilder databaseBuilder, io.ebean.BackgroundExecutor backgroupExecutor) - Specified by:
createin interfaceio.ebean.cache.ServerCachePlugin
-
createCacheNotify
public io.ebean.cache.ServerCacheNotify createCacheNotify(io.ebean.cache.ServerCacheNotify listener) - Specified by:
createCacheNotifyin interfaceio.ebean.cache.ServerCacheFactory
-
createCache
public io.ebean.cache.ServerCache createCache(io.ebean.cache.ServerCacheConfig config) - Specified by:
createCachein interfaceio.ebean.cache.ServerCacheFactory
-
getCache
- Specified by:
getCachein interfaceCacheManager
-
clearAllLocal
public void clearAllLocal()- Specified by:
clearAllLocalin interfaceCacheManager
-
clearAll
public void clearAll()- Specified by:
clearAllin interfaceCacheManager
-