public class EhcacheFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<net.sf.ehcache.Cache>, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
EhcacheFactoryBean(net.sf.ehcache.CacheManager cacheManager,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
net.sf.ehcache.Cache |
getObject() |
Class<?> |
getObjectType() |
boolean |
isDiskPersistent() |
boolean |
isSingleton() |
void |
setCopyOnRead(boolean copyOnRead) |
void |
setCopyOnWrite(boolean copyOnWrite) |
void |
setDiskPersistent(boolean diskPersistent) |
void |
setLogging(boolean logging) |
void |
setMaxElementsInMemory(int maxElementsInMemory) |
void |
setMaxElementsOnDisk(int maxElementsOnDisk) |
void |
setMaxMemoryOffHeap(HeapMemory maxMemoryOffHeap) |
void |
setMemoryStoreEvictionPolicy(net.sf.ehcache.store.MemoryStoreEvictionPolicy memoryStoreEvictionPolicy) |
void |
setOverflowToOffHeap(boolean overflowToOffHeap) |
void |
setStatistics(boolean statistics) |
void |
setTerracottaMode(net.sf.ehcache.config.TerracottaConfiguration.ValueMode terracottaMode) |
void |
setTimeToIdleSeconds(long timeToIdleSeconds) |
void |
setTimeToLiveSeconds(long timeToLiveSeconds) |
void |
setTransactionalMode(TransactionalMode transactionalMode) |
public EhcacheFactoryBean(net.sf.ehcache.CacheManager cacheManager,
String name)
public void setMaxElementsInMemory(int maxElementsInMemory)
public void setTimeToIdleSeconds(long timeToIdleSeconds)
public void setTimeToLiveSeconds(long timeToLiveSeconds)
public void setMemoryStoreEvictionPolicy(net.sf.ehcache.store.MemoryStoreEvictionPolicy memoryStoreEvictionPolicy)
public void setMaxElementsOnDisk(int maxElementsOnDisk)
public void setOverflowToOffHeap(boolean overflowToOffHeap)
public boolean isDiskPersistent()
public void setDiskPersistent(boolean diskPersistent)
public void setMaxMemoryOffHeap(HeapMemory maxMemoryOffHeap)
public void setTransactionalMode(TransactionalMode transactionalMode)
public void setStatistics(boolean statistics)
public void setLogging(boolean logging)
public void setCopyOnRead(boolean copyOnRead)
public void setCopyOnWrite(boolean copyOnWrite)
public void setTerracottaMode(net.sf.ehcache.config.TerracottaConfiguration.ValueMode terracottaMode)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic net.sf.ehcache.Cache getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<net.sf.ehcache.Cache>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<net.sf.ehcache.Cache>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<net.sf.ehcache.Cache>Copyright © 2017. All rights reserved.