public class CacheManagerImpl extends Object implements org.springframework.cache.CacheManager, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
| Constructor and Description |
|---|
CacheManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.cache.Cache |
getCache(String name) |
Collection<String> |
getCacheNames() |
void |
onApplicationEvent(org.springframework.context.event.ContextClosedEvent event) |
void |
setCacheImplementations(Collection<org.springframework.cache.Cache> cacheImpls)
Set cache implementations
|
void |
setCacheNamesToPreInitialize(Collection<String> cacheNamesToPreInitialize) |
void |
setCacheNameTree(CacheNameTree cacheNameTree) |
void |
setCacheSerializer(CacheSerializer cacheSerializer) |
void |
setFirstLevelCacheSize(long firstLevelCacheSize) |
void |
setHazelcastCacheMapPrefix(String hazelcastCacheMapPrefix) |
void |
setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance) |
void |
setHazelcastTopicName(String hazelcastTopicName) |
void |
setTtlConfig(TimeToLiveConfig ttlConfig) |
public void setCacheImplementations(Collection<org.springframework.cache.Cache> cacheImpls)
cacheImpls - cache implementation classespublic org.springframework.cache.Cache getCache(String name)
getCache in interface org.springframework.cache.CacheManagerpublic Collection<String> getCacheNames()
getCacheNames in interface org.springframework.cache.CacheManagerpublic void setCacheNameTree(CacheNameTree cacheNameTree)
public void setCacheSerializer(CacheSerializer cacheSerializer)
public void setHazelcastTopicName(String hazelcastTopicName)
public void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance)
public void setCacheNamesToPreInitialize(Collection<String> cacheNamesToPreInitialize)
public void setTtlConfig(TimeToLiveConfig ttlConfig)
public void setFirstLevelCacheSize(long firstLevelCacheSize)
public void setHazelcastCacheMapPrefix(String hazelcastCacheMapPrefix)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>Copyright © 2018. All rights reserved.