Uses of Class
net.sf.ehcache.config.CacheConfiguration
-
Packages that use CacheConfiguration Package Description net.sf.ehcache This package contains the public API for using ehcache.net.sf.ehcache.config This package contains the cache configuration code.net.sf.ehcache.config.generator This package contains utility classes for generating configuration texts.net.sf.ehcache.config.generator.model.elements This package contains utility classes encapsulating ideas of Elements and Attributes from the ehcache.xsdnet.sf.ehcache.constructs The constructs package builds on top of the core ehcache classes to create implementations for common caching patterns.net.sf.ehcache.constructs.classloader ClassLoader contstructs packagenet.sf.ehcache.management.sampled This package contains classes related to MBeans with Sampled Statistics.net.sf.ehcache.store Store package.net.sf.ehcache.store.disk This package contains the disk store.net.sf.ehcache.writer.writebehind This package contains the write behind functionalities. -
-
Uses of CacheConfiguration in net.sf.ehcache
Methods in net.sf.ehcache that return CacheConfiguration Modifier and Type Method Description CacheConfigurationCache. getCacheConfiguration()Gets the cache configuration this cache was created with.CacheConfigurationEhcache. getCacheConfiguration()Gets the cache configuration this cache was created with.Methods in net.sf.ehcache with parameters of type CacheConfiguration Modifier and Type Method Description booleanElement. isExpired(CacheConfiguration config)An element is expired if the expiration time as given byElement.getExpirationTime()is in the past.Constructors in net.sf.ehcache with parameters of type CacheConfiguration Constructor Description Cache(CacheConfiguration cacheConfiguration)2.0 and higher ConstructorCache(CacheConfiguration cacheConfiguration, RegisteredEventListeners registeredEventListeners, BootstrapCacheLoader bootstrapCacheLoader)2.0 and higher Constructor -
Uses of CacheConfiguration in net.sf.ehcache.config
Methods in net.sf.ehcache.config that return CacheConfiguration Modifier and Type Method Description CacheConfigurationCacheConfiguration. bootstrapCacheLoaderFactory(CacheConfiguration.BootstrapCacheLoaderFactoryConfiguration factory)CacheConfigurationCacheConfiguration. cacheEventListenerFactory(CacheConfiguration.CacheEventListenerFactoryConfiguration factory)CacheConfigurationCacheConfiguration. cacheExceptionHandlerFactory(CacheConfiguration.CacheExceptionHandlerFactoryConfiguration factory)CacheConfigurationCacheConfiguration. cacheExtensionFactory(CacheConfiguration.CacheExtensionFactoryConfiguration factory)CacheConfigurationCacheConfiguration. cacheLoaderFactory(CacheConfiguration.CacheLoaderFactoryConfiguration factory)CacheConfigurationCacheConfiguration. cacheWriter(CacheWriterConfiguration cacheWriterConfiguration)CacheConfigurationCacheConfiguration. clearOnFlush(boolean clearOnFlush)Builder which sets whether the MemoryStore should be cleared whenflush()is called on the cache - true by default.CacheConfigurationCacheConfiguration. clone()Clones this object, following the usual contract.CacheConfigurationCacheConfiguration. copyOnRead(boolean copyOnRead)Whether the Cache should copy elements it returnsCacheConfigurationCacheConfiguration. copyOnWrite(boolean copyOnWrite)Whether the Cache should copy elements it getsCacheConfigurationCacheConfiguration. diskAccessStripes(int stripes)Builder which sets the number of disk stripes.CacheConfigurationCacheConfiguration. diskExpiryThreadIntervalSeconds(long diskExpiryThreadIntervalSeconds)Builder which sets the interval in seconds between runs of the disk expiry thread.CacheConfigurationCacheConfiguration. diskPersistent(boolean diskPersistent)Deprecated.ThediskPersistentattribute has been replaced withpersistence(PersistenceConfiguration).CacheConfigurationCacheConfiguration. diskSpoolBufferSizeMB(int diskSpoolBufferSizeMB)Builder which sets the disk spool size, which is used to buffer writes to the DiskStore.CacheConfigurationCacheConfiguration. dynamicAttributeExtractor(DynamicAttributesExtractor extractor)Sets dynamic search attributes extractorCacheConfigurationCacheConfiguration. eternal(boolean eternal)Builder which sets whether elements are eternal.CacheConfigurationConfiguration. getDefaultCacheConfiguration()CacheConfigurationCacheConfiguration. logging(boolean enable)Builder to enable or disable logging for the cacheCacheConfigurationCacheConfiguration. maxBytesLocalDisk(long amount, MemoryUnit memoryUnit)Sets the maxOnDisk sizeCacheConfigurationCacheConfiguration. maxBytesLocalHeap(long amount, MemoryUnit memoryUnit)Sets the maxOnHeap sizeCacheConfigurationCacheConfiguration. maxBytesLocalOffHeap(long amount, MemoryUnit memoryUnit)Sets the maxOffHeap tier sizeCacheConfigurationCacheConfiguration. maxElementsInMemory(int maxElementsInMemory)Deprecated.CacheConfigurationCacheConfiguration. maxElementsOnDisk(int maxElementsOnDisk)Deprecated.usemaxEntriesLocalDisk(int)for unclustered caches andmaxEntriesInCache(long)for clustered caches.CacheConfigurationCacheConfiguration. maxEntriesInCache(long maxEntriesInCache)Builder which sets the maximum number entries in cache.CacheConfigurationCacheConfiguration. maxEntriesLocalDisk(int maxElementsOnDisk)Builder which sets the maximum number elements on Disk.CacheConfigurationCacheConfiguration. maxEntriesLocalHeap(int maxElementsInMemory)Builder that sets the maximum objects to be held in memory (0 = no limit).CacheConfigurationCacheConfiguration. maxMemoryOffHeap(java.lang.String maxMemoryOffHeap)Deprecated.CacheConfigurationCacheConfiguration. memoryStoreEvictionPolicy(java.lang.String memoryStoreEvictionPolicy)Builder that sets the eviction policy.CacheConfigurationCacheConfiguration. memoryStoreEvictionPolicy(MemoryStoreEvictionPolicy memoryStoreEvictionPolicy)Builder which Sets the eviction policy.CacheConfigurationCacheConfiguration. name(java.lang.String name)Builder to set the name of the cache.CacheConfigurationCacheConfiguration. overflowToDisk(boolean overflowToDisk)Deprecated.TheoverflowToDiskattribute has been replaced withPersistenceConfiguration.Strategy.LOCALTEMPSWAP.CacheConfigurationCacheConfiguration. overflowToOffHeap(boolean overflowToOffHeap)Builder to enable or disable offheap store for the cache.static CacheConfigurationConfigurationFactory. parseCacheConfiguration(java.lang.String xmlString)Configures a cache bean from a string of XML.CacheConfigurationCacheConfiguration. persistence(PersistenceConfiguration persistenceConfiguration)Builder to set the PersistenceConfiguration for this cache.CacheConfigurationCacheConfiguration. pinning(PinningConfiguration pinningConfiguration)CacheConfigurationCacheConfiguration. searchable(Searchable searchable)CacheConfigurationCacheConfiguration. sizeOfPolicy(SizeOfPolicyConfiguration sizeOfPolicyConfiguration)Builder to set the SizeOfPolicyConfiguration for this cache.CacheConfigurationCacheConfiguration. statistics(boolean statistics)Deprecated.CacheConfigurationCacheConfiguration. terracotta(TerracottaConfiguration terracottaConfiguration)CacheConfigurationCacheConfiguration. timeoutMillis(long timeoutMillis)Builder that sets the timeout for CacheLoader execution (0 = no timeout).CacheConfigurationCacheConfiguration. timeToIdleSeconds(long timeToIdleSeconds)Builder which sets the time to idle for an element before it expires.CacheConfigurationCacheConfiguration. timeToLiveSeconds(long timeToLiveSeconds)Builder which sets the time to idle for an element before it expires.CacheConfigurationCacheConfiguration. transactionalMode(java.lang.String transactionalMode)Builder which sets the transactionalModeCacheConfigurationCacheConfiguration. transactionalMode(CacheConfiguration.TransactionalMode transactionalMode)Builder which sets the transactionalModeMethods in net.sf.ehcache.config that return types with arguments of type CacheConfiguration Modifier and Type Method Description java.util.Map<java.lang.String,CacheConfiguration>Configuration. getCacheConfigurations()Gets a Map of cache configurations, keyed by name.Methods in net.sf.ehcache.config with parameters of type CacheConfiguration Modifier and Type Method Description voidConfiguration. addCache(CacheConfiguration cacheConfiguration)Allows BeanHandler to add Cache Configurations to the configuration.voidConfiguration. addDefaultCache(CacheConfiguration defaultCacheConfiguration)Allows BeanHandler to add a default configuration to the configuration.ConfigurationConfiguration. cache(CacheConfiguration cacheConfiguration)Builder to add a new cache through its configstatic java.util.List<Ehcache>ConfigurationHelper. createDefaultCacheDecorators(Ehcache cache, CacheConfiguration defaultCacheConfiguration, java.lang.ClassLoader loader)Creates default cache decorators specified in the default cache configuration if anyElementValueComparatorElementValueComparatorConfiguration. createElementComparatorInstance(CacheConfiguration cacheConfiguration, java.lang.ClassLoader loader)Get (and potentially) instantiate the instanceConfigurationConfiguration. defaultCache(CacheConfiguration defaultCacheConfiguration)Builder method to set the default cache configuration, this can only be used once.voidAbstractCacheConfigurationListener. deregistered(CacheConfiguration config)Indicates that this listener was removed from the given configurationvoidCacheConfigurationListener. deregistered(CacheConfiguration config)Indicates that this listener was removed from the given configurationvoidAbstractCacheConfigurationListener. registered(CacheConfiguration config)Indicates that this listener was registered with the given configurationvoidCacheConfigurationListener. registered(CacheConfiguration config)Indicates that this listener was registered with the given configurationvoidConfiguration.RuntimeCfg. removeCache(CacheConfiguration cacheConfiguration)Removes a cache from the known listvoidConfiguration. setDefaultCacheConfiguration(CacheConfiguration defaultCacheConfiguration) -
Uses of CacheConfiguration in net.sf.ehcache.config.generator
Methods in net.sf.ehcache.config.generator with parameters of type CacheConfiguration Modifier and Type Method Description java.lang.StringConfigurationGenerator. generate(Configuration configuration, CacheConfiguration cacheConfiguration)Deprecated.use appropriate methods inConfigurationUtilinsteadjava.lang.StringConfigurationGenerator. generate(Configuration configuration, CacheConfiguration defaultCacheConfiguration, java.util.Map<java.lang.String,CacheConfiguration> cacheConfigs)Deprecated.use appropriate methods inConfigurationUtilinsteadstatic java.lang.StringConfigurationUtil. generateCacheConfigurationText(Configuration configuration, CacheConfiguration cacheConfiguration)Generates configuration text for aCacheConfigurationMethod parameters in net.sf.ehcache.config.generator with type arguments of type CacheConfiguration Modifier and Type Method Description java.lang.StringConfigurationGenerator. generate(Configuration configuration, CacheConfiguration defaultCacheConfiguration, java.util.Map<java.lang.String,CacheConfiguration> cacheConfigs)Deprecated.use appropriate methods inConfigurationUtilinstead -
Uses of CacheConfiguration in net.sf.ehcache.config.generator.model.elements
Methods in net.sf.ehcache.config.generator.model.elements with parameters of type CacheConfiguration Modifier and Type Method Description static voidCacheConfigurationElement. addCommonAttributesWithDefaultCache(NodeElement element, Configuration configuration, CacheConfiguration cacheConfiguration)Adds all attributes which are common with the "defaultCache" element in ehcache.xsdstatic voidCacheConfigurationElement. addCommonChildElementsWithDefaultCache(NodeElement element, CacheConfiguration cacheConfiguration)Adds all common child elements with the "defaultCache" element in ehcache.xsdConstructors in net.sf.ehcache.config.generator.model.elements with parameters of type CacheConfiguration Constructor Description CacheConfigurationElement(NodeElement parent, Configuration configuration, CacheConfiguration cacheConfiguration)Constructor accepting the parent and theCacheConfigurationDefaultCacheConfigurationElement(NodeElement parent, Configuration configuration, CacheConfiguration cacheConfiguration)Constructor accepting the parent and theCacheConfiguration -
Uses of CacheConfiguration in net.sf.ehcache.constructs
Methods in net.sf.ehcache.constructs that return CacheConfiguration Modifier and Type Method Description CacheConfigurationEhcacheDecoratorAdapter. getCacheConfiguration()Gets the cache configuration this cache was created with. -
Uses of CacheConfiguration in net.sf.ehcache.constructs.classloader
Methods in net.sf.ehcache.constructs.classloader that return CacheConfiguration Modifier and Type Method Description CacheConfigurationClassLoaderAwareCache. getCacheConfiguration()Gets the cache configuration this cache was created with. -
Uses of CacheConfiguration in net.sf.ehcache.management.sampled
Methods in net.sf.ehcache.management.sampled with parameters of type CacheConfiguration Modifier and Type Method Description voidCacheSamplerImpl. deregistered(CacheConfiguration config)Indicates that this listener was removed from the given configurationvoidCacheSamplerImpl. registered(CacheConfiguration config)Indicates that this listener was registered with the given configuration -
Uses of CacheConfiguration in net.sf.ehcache.store
Methods in net.sf.ehcache.store with parameters of type CacheConfiguration Modifier and Type Method Description protected static net.sf.ehcache.store.BruteForceSourceMemoryStore. createBruteForceSource(MemoryStore memoryStore, CacheConfiguration cacheConfiguration)Factory method to wrap the MemoryStore into a BruteForceSource, accounting for transactional and copy configurationvoidMemoryStore. deregistered(CacheConfiguration config)Indicates that this listener was removed from the given configurationvoidMemoryStore. registered(CacheConfiguration config)Indicates that this listener was registered with the given configurationstatic ElementValueComparatorTxCopyingCacheStore. wrap(ElementValueComparator comparator, CacheConfiguration cacheConfiguration)Wraps the givenElementValueComparatorif the configuration requires copy on readstatic ElementValueComparatorCopyingCacheStore. wrapIfCopy(ElementValueComparator comparator, CacheConfiguration cacheConfiguration)Wraps the givenElementValueComparatorif the configuration requires copy on readstatic StoreCopyingCacheStore. wrapIfCopy(Store cacheStore, CacheConfiguration cacheConfiguration)Wraps the Store instance passed in, should any copy occurstatic StoreTxCopyingCacheStore. wrapTxStore(AbstractTransactionStore cacheStore, CacheConfiguration cacheConfiguration)Wraps the Store instance passed in, should any copy occurConstructors in net.sf.ehcache.store with parameters of type CacheConfiguration Constructor Description CacheStore(CachingTier<java.lang.Object,Element> cache, AuthoritativeTier authority, CacheConfiguration cacheConfiguration)Deprecated.DefaultElementValueComparator(CacheConfiguration cacheConfiguration)ConstructorLegacyStoreWrapper(Store memory, Store disk, RegisteredEventListeners eventListeners, CacheConfiguration config)Create a correctly locked store wrapper around the supplied in-memory and on disk stores. -
Uses of CacheConfiguration in net.sf.ehcache.store.disk
Constructors in net.sf.ehcache.store.disk with parameters of type CacheConfiguration Constructor Description Segment(int initialCapacity, float loadFactor, DiskStorageFactory primary, CacheConfiguration cacheConfiguration, PoolAccessor onHeapPoolAccessor, PoolAccessor onDiskPoolAccessor, RegisteredEventListeners cacheEventNotificationService, org.terracotta.statistics.observer.OperationObserver<CacheOperationOutcomes.EvictionOutcome> evictionObserver)Create a Segment with the given initial capacity, load-factor, primary element substitute factory, and identity element substitute factory. -
Uses of CacheConfiguration in net.sf.ehcache.writer.writebehind
Methods in net.sf.ehcache.writer.writebehind with parameters of type CacheConfiguration Modifier and Type Method Description protected WriteBehindWriteBehindQueueManager.WriteBehindQueueFactory. createQueue(int index, CacheConfiguration config)Create a write behind queue stripe.Constructors in net.sf.ehcache.writer.writebehind with parameters of type CacheConfiguration Constructor Description AbstractWriteBehindQueue(CacheConfiguration config)Create a new write behind queue.WriteBehindQueueManager(CacheConfiguration config)Create a new write behind queue manager.WriteBehindQueueManager(CacheConfiguration config, WriteBehindQueueManager.WriteBehindQueueFactory queueFactory)Create the write behind queue manager with queues created via the passed inWriteBehindQueueManager.WriteBehindQueueFactory
-