Package com.turbospaces.ebean
Class MockCacheManager
java.lang.Object
com.turbospaces.boot.AbstractBootstrapAware
com.turbospaces.ebean.MockCacheManager
- All Implemented Interfaces:
BootstrapAware,CacheManager,io.ebean.cache.ServerCacheFactory,io.ebean.cache.ServerCachePlugin,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactory
public class MockCacheManager
extends AbstractBootstrapAware
implements CacheManager, io.ebean.cache.ServerCacheFactory
-
Field Summary
Fields inherited from class com.turbospaces.boot.AbstractBootstrapAware
bootstrap, loggerFields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll(boolean preserveSimple) voidvoidio.ebean.cache.ServerCacheFactorycreate(io.ebean.config.DatabaseConfig config, io.ebean.BackgroundExecutor backgroupExecutor) io.ebean.cache.ServerCachecreateCache(io.ebean.cache.ServerCacheConfig config) io.ebean.cache.ServerCacheNotifycreateCacheNotify(io.ebean.cache.ServerCacheNotify listener) createSimpleCache(String name) io.ebean.cache.ServerCacheMethods inherited from class com.turbospaces.boot.AbstractBootstrapAware
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanFactory, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch, 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, onCachePut, onCacheRemove, onTablesModifyMethods inherited from interface io.ebean.cache.ServerCacheFactory
visit
-
Constructor Details
-
MockCacheManager
public MockCacheManager()
-
-
Method Details
-
create
public io.ebean.cache.ServerCacheFactory create(io.ebean.config.DatabaseConfig config, 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
-
createSimpleCache
- Specified by:
createSimpleCachein interfaceCacheManager
-
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
-
clearAllSimple
public void clearAllSimple()- Specified by:
clearAllSimplein interfaceCacheManager
-
clearAll
public void clearAll(boolean preserveSimple) - Specified by:
clearAllin interfaceCacheManager
-