Package ome.services.sessions.state
Class CacheFactory
- java.lang.Object
-
- net.sf.ehcache.config.CacheConfiguration
-
- org.springframework.cache.ehcache.EhCacheFactoryBean
-
- ome.services.sessions.state.CacheFactory
-
- All Implemented Interfaces:
java.lang.Cloneable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<net.sf.ehcache.Ehcache>
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public class CacheFactory extends org.springframework.cache.ehcache.EhCacheFactoryBean implements org.springframework.context.ApplicationContextAware
- Since:
- 3.0-Beta3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.ehcache.config.CacheConfiguration
net.sf.ehcache.config.CacheConfiguration.BootstrapCacheLoaderFactoryConfiguration, net.sf.ehcache.config.CacheConfiguration.CacheDecoratorFactoryConfiguration, net.sf.ehcache.config.CacheConfiguration.CacheEventListenerFactoryConfiguration, net.sf.ehcache.config.CacheConfiguration.CacheExceptionHandlerFactoryConfiguration, net.sf.ehcache.config.CacheConfiguration.CacheExtensionFactoryConfiguration, net.sf.ehcache.config.CacheConfiguration.CacheLoaderFactoryConfiguration, net.sf.ehcache.config.CacheConfiguration.TransactionalMode
-
-
Field Summary
-
Fields inherited from class net.sf.ehcache.config.CacheConfiguration
bootstrapCacheLoaderFactoryConfiguration, cacheDecoratorConfigurations, cacheEventListenerConfigurations, cacheExceptionHandlerFactoryConfiguration, cacheExtensionConfigurations, cacheLoaderConfigurations, cacheLoaderTimeoutMillis, cacheWriterConfiguration, clearOnFlush, DEFAULT_CACHE_WRITER_CONFIGURATION, DEFAULT_CLEAR_ON_FLUSH, DEFAULT_COPY_ON_READ, DEFAULT_COPY_ON_WRITE, DEFAULT_COPY_STRATEGY_CONFIGURATION, DEFAULT_DISK_ACCESS_STRIPES, DEFAULT_DISK_PERSISTENT, DEFAULT_ETERNAL_VALUE, DEFAULT_EXPIRY_THREAD_INTERVAL_SECONDS, DEFAULT_LOGGING, DEFAULT_MAX_BYTES_OFF_HEAP, DEFAULT_MAX_BYTES_ON_DISK, DEFAULT_MAX_BYTES_ON_HEAP, DEFAULT_MAX_ELEMENTS_ON_DISK, DEFAULT_MAX_ENTRIES_IN_CACHE, DEFAULT_MEMORY_STORE_EVICTION_POLICY, DEFAULT_SPOOL_BUFFER_SIZE, DEFAULT_STATISTICS, DEFAULT_TRANSACTIONAL_MODE, DEFAULT_TTI, DEFAULT_TTL, diskAccessStripes, diskExpiryThreadIntervalSeconds, diskPersistent, diskSpoolBufferSizeMB, eternal, listeners, logging, maxElementsOnDisk, maxEntriesInCache, maxEntriesLocalHeap, memoryStoreEvictionPolicy, name, overflowToDisk, overflowToOffHeap, pinningConfiguration, terracottaConfiguration, timeToIdleSeconds, timeToLiveSeconds
-
-
Constructor Summary
Constructors Constructor Description CacheFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.ehcache.Ehcache
createCache(net.sf.ehcache.event.CacheEventListener... listeners)
net.sf.ehcache.Ehcache
getObject()
protected void
registerAll(net.sf.ehcache.Ehcache cache, net.sf.ehcache.event.CacheEventListener... l)
void
setApplicationContext(org.springframework.context.ApplicationContext arg0)
void
setCacheEventListeners(net.sf.ehcache.event.CacheEventListener[] listeners)
-
Methods inherited from class org.springframework.cache.ehcache.EhCacheFactoryBean
afterPropertiesSet, createCache, decorateCache, getObjectType, isSingleton, setBeanName, setBlocking, setBootstrapCacheLoader, setCacheEntryFactory, setCacheEventListeners, setCacheManager, setCacheName, setDisabled, setDiskSpoolBufferSize, setSampledStatisticsEnabled, setStatisticsEnabled, setTimeToIdle, setTimeToLive
-
Methods inherited from class net.sf.ehcache.config.CacheConfiguration
addBootstrapCacheLoaderFactory, addCacheDecoratorFactory, addCacheEventListenerFactory, addCacheExceptionHandlerFactory, addCacheExtensionFactory, addCacheLoaderFactory, addCacheWriter, addConfigurationListener, addCopyStrategy, addDynamicSearchListener, addElementValueComparator, addPersistence, addPinning, addSearchable, addSizeOfPolicy, addTerracotta, bootstrapCacheLoaderFactory, cacheEventListenerFactory, cacheExceptionHandlerFactory, cacheExtensionFactory, cacheLoaderFactory, cacheWriter, clearOnFlush, clone, copyOnRead, copyOnWrite, diskAccessStripes, diskExpiryThreadIntervalSeconds, diskPersistent, diskSpoolBufferSizeMB, dynamicAttributeExtractor, eternal, freezeConfiguration, getBootstrapCacheLoaderFactoryConfiguration, getCacheDecoratorConfigurations, getCacheEventListenerConfigurations, getCacheExceptionHandlerFactoryConfiguration, getCacheExtensionConfigurations, getCacheLoaderConfigurations, getCacheLoaderTimeoutMillis, getCacheWriterConfiguration, getClassLoader, getCopyStrategy, getCopyStrategyConfiguration, getDiskAccessStripes, getDiskExpiryThreadIntervalSeconds, getDiskSpoolBufferSizeMB, getDynamicExtractor, getElementValueComparatorConfiguration, getLogging, getMaxBytesLocalDisk, getMaxBytesLocalDiskAsString, getMaxBytesLocalDiskPercentage, getMaxBytesLocalHeap, getMaxBytesLocalHeapAsString, getMaxBytesLocalHeapPercentage, getMaxBytesLocalOffHeap, getMaxBytesLocalOffHeapAsString, getMaxBytesLocalOffHeapPercentage, getMaxElementsInMemory, getMaxElementsOnDisk, getMaxEntriesInCache, getMaxEntriesLocalDisk, getMaxEntriesLocalHeap, getMaxMemoryOffHeap, getMaxMemoryOffHeapInBytes, getMemoryStoreEvictionPolicy, getName, getPersistenceConfiguration, getPinningConfiguration, getSearchable, getSearchAttributes, getSizeOfPolicyConfiguration, getStatistics, getTerracottaConfiguration, getTerracottaConsistency, getTimeToIdleSeconds, getTimeToLiveSeconds, getTransactionalMode, internalSetDiskCapacity, internalSetEternal, internalSetLogging, internalSetMaxBytesLocalOffheap, internalSetMaxEntriesInCache, internalSetMemCapacity, internalSetMemCapacityInBytes, internalSetOverflowToOffheap, internalSetTimeToIdle, internalSetTimeToLive, isClearOnFlush, isCopyOnRead, isCopyOnWrite, isCountBasedTuned, isDiskPersistent, isEternal, isFrozen, isLocalTransactional, isMaxBytesLocalDiskPercentageSet, isMaxBytesLocalHeapPercentageSet, isMaxBytesLocalOffHeapPercentageSet, isOverflowToDisk, isOverflowToOffHeap, isOverflowToOffHeapSet, isSearchable, isTerracottaClustered, isXaStrictTransactional, isXaTransactional, logging, maxBytesLocalDisk, maxBytesLocalHeap, maxBytesLocalOffHeap, maxElementsInMemory, maxElementsOnDisk, maxEntriesInCache, maxEntriesLocalDisk, maxEntriesLocalHeap, maxMemoryOffHeap, memoryStoreEvictionPolicy, memoryStoreEvictionPolicy, name, overflowToDisk, overflowToOffHeap, persistence, pinning, removeConfigurationListener, searchable, setCacheLoaderTimeoutMillis, setClassLoader, setClearOnFlush, setCopyOnRead, setCopyOnWrite, setDiskAccessStripes, setDiskExpiryThreadIntervalSeconds, setDiskPersistent, setDiskSpoolBufferSizeMB, setDynamicAttributesExtractor, setEternal, setLogging, setMaxBytesLocalDisk, setMaxBytesLocalDisk, setMaxBytesLocalHeap, setMaxBytesLocalHeap, setMaxBytesLocalOffHeap, setMaxBytesLocalOffHeap, setMaxElementsInMemory, setMaxElementsOnDisk, setMaxEntriesInCache, setMaxEntriesLocalDisk, setMaxEntriesLocalHeap, setMaxMemoryOffHeap, setMemoryStoreEvictionPolicy, setMemoryStoreEvictionPolicyFromObject, setName, setOverflowToDisk, setOverflowToOffHeap, setStatistics, setTimeToIdleSeconds, setTimeToLiveSeconds, setTransactionalMode, setupFor, setupFor, sizeOfPolicy, statistics, terracotta, timeoutMillis, timeToIdleSeconds, timeToLiveSeconds, transactionalMode, transactionalMode, validate, validateCompleteConfiguration, validateConfiguration
-
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
setCacheEventListeners
public void setCacheEventListeners(net.sf.ehcache.event.CacheEventListener[] listeners)
-
getObject
public net.sf.ehcache.Ehcache getObject()
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<net.sf.ehcache.Ehcache>
- Overrides:
getObject
in classorg.springframework.cache.ehcache.EhCacheFactoryBean
-
createCache
public net.sf.ehcache.Ehcache createCache(net.sf.ehcache.event.CacheEventListener... listeners)
-
registerAll
protected void registerAll(net.sf.ehcache.Ehcache cache, net.sf.ehcache.event.CacheEventListener... l)
-
-