Uses of Class
net.sf.ehcache.Element
-
Packages that use Element 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.constructs The constructs package builds on top of the core ehcache classes to create implementations for common caching patterns.net.sf.ehcache.constructs.blocking Doug Lea in his book Concurrent Programming in Java talks about concurrency support constructs.net.sf.ehcache.constructs.classloader ClassLoader contstructs packagenet.sf.ehcache.constructs.eventual Construct related to eventual operationsnet.sf.ehcache.constructs.readthrough Ehcache simple read through cache decorator packagenet.sf.ehcache.constructs.refreshahead Ehcache simple refresh-ahead cache decorator packagenet.sf.ehcache.distribution This package is for cache replication.net.sf.ehcache.event This package contains interfaces and classes for listening to events.net.sf.ehcache.search.attribute This package contains classes for ehcache search attributesnet.sf.ehcache.search.expression This package contains classes for search expression types (ie.net.sf.ehcache.search.impl This package contains an implementation for Results.net.sf.ehcache.store Store package.net.sf.ehcache.store.cachingtier Contains the caching tier implementationsnet.sf.ehcache.store.chm CHM package.net.sf.ehcache.store.compound This package contains the main classes and interfaces for the new fully coherent combination disk and memory store for unclustered Ehcache.net.sf.ehcache.store.disk This package contains the disk store.net.sf.ehcache.terracotta This package contains the Terracotta integration functionalities.net.sf.ehcache.transaction This package contains classes for controlling cache operations for transactional use.net.sf.ehcache.transaction.local This package contains the local transactions subsystem.net.sf.ehcache.transaction.xa This package contains the functionality to provide XA support to a transactional Cache.net.sf.ehcache.transaction.xa.commands This package contains a representation of the queued commands which can be executed against a XA store.net.sf.ehcache.writer This package contains the cache writer functionalities.net.sf.ehcache.writer.writebehind This package contains the write behind functionalities.net.sf.ehcache.writer.writebehind.operations This package contains the operations for the write behind functionalities.net.sf.ehcache.writer.writethrough This package contains the write through functionalities. -
-
Uses of Element in net.sf.ehcache
Methods in net.sf.ehcache that return Element Modifier and Type Method Description ElementCache. get(java.io.Serializable key)Gets an element from the cache.ElementCache. get(java.lang.Object key)Gets an element from the cache.ElementEhcache. get(java.io.Serializable key)Gets an element from the cache.ElementEhcache. get(java.lang.Object key)Gets an element from the cache.ElementCacheEntry. getElement()Retrieves the element of this cache entry.ElementCache. getQuiet(java.io.Serializable key)Gets an element from the cache, without updating Element statistics.ElementCache. getQuiet(java.lang.Object key)Gets an element from the cache, without updating Element statistics.ElementEhcache. getQuiet(java.io.Serializable key)Gets an element from the cache, without updating Element statistics.ElementEhcache. getQuiet(java.lang.Object key)Gets an element from the cache, without updating Element statistics.ElementCache. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)This method will return, from the cache, the Element associated with the argument "key".ElementEhcache. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)This method will return, from the cache, the object associated with the argument "key".ElementCache. putIfAbsent(Element element)Put an element in the cache if no element is currently mapped to the elements key.ElementCache. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache if no element is currently mapped to the elements key.ElementEhcache. putIfAbsent(Element element)Put an element in the cache if no element is currently mapped to the elements key.ElementEhcache. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache if no element is currently mapped to the elements key.ElementCache. removeAndReturnElement(java.lang.Object key)Removes anElementfrom the Cache and returns it.ElementCache. replace(Element element)Replace the cached element only if an Element is currently cached for this keyElementEhcache. replace(Element element)Replace the cached element only if an Element is currently cached for this keyMethods in net.sf.ehcache that return types with arguments of type Element Modifier and Type Method Description java.util.Map<java.lang.Object,Element>Cache. getAll(java.util.Collection<?> keys)Gets all the elements from the cache for the keys provided.java.util.Map<java.lang.Object,Element>Ehcache. getAll(java.util.Collection<?> keys)Gets all the elements from the cache for the keys provided.Methods in net.sf.ehcache with parameters of type Element Modifier and Type Method Description static longElementIdHelper. getId(Element e)Get the element idstatic booleanElementIdHelper. hasId(Element e)Is element id set?booleanCache. isExpired(Element element)Checks whether this cache element has expired.booleanEhcache. isExpired(Element element)Checks whether this cache element has expired.voidCache. put(Element element)Put an element in the cache.voidCache. put(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache.voidEhcache. put(Element element)Put an element in the cache.voidEhcache. put(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache.ElementCache. putIfAbsent(Element element)Put an element in the cache if no element is currently mapped to the elements key.ElementCache. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache if no element is currently mapped to the elements key.ElementEhcache. putIfAbsent(Element element)Put an element in the cache if no element is currently mapped to the elements key.ElementEhcache. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache if no element is currently mapped to the elements key.voidCache. putQuiet(Element element)Put an element in the cache, without updating statistics, or updating listeners.voidEhcache. putQuiet(Element element)Put an element in the cache, without updating statistics, or updating listeners.voidCache. putWithWriter(Element element)Put an element in the cache writing through a CacheWriter.voidEhcache. putWithWriter(Element element)Put an element in the cache writing through a CacheWriter.booleanCache. removeElement(Element element)Remove the Element mapped to the key for the supplied element if the value of the supplied Element compares equal to the value of the cached Element.booleanEhcache. removeElement(Element element)Remove the Element mapped to the key for the supplied element if the value of the supplied Element compares equal to the value of the cached Element.ElementCache. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanCache. replace(Element old, Element element)Replace the cached element only if the current Element is equal to the supplied old Element.ElementEhcache. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanEhcache. replace(Element old, Element element)Replace the cached element only if the current Element is equal to the supplied old Element.static voidElementIdHelper. setId(Element e, long id)Set the element idMethod parameters in net.sf.ehcache with type arguments of type Element Modifier and Type Method Description voidCache. putAll(java.util.Collection<Element> elements)Puts a collection of elements in to the cache.voidEhcache. putAll(java.util.Collection<Element> elements)Puts a collection of elements in to the cache.Constructors in net.sf.ehcache with parameters of type Element Constructor Description CacheEntry(java.lang.Object key, Element element)Creates a new cache entry. -
Uses of Element in net.sf.ehcache.config
Methods in net.sf.ehcache.config that return types with arguments of type Element Modifier and Type Method Description ReadWriteCopyStrategy<Element>CacheConfiguration. getCopyStrategy()Getter to the configured ReadWriteCopyStrategy.ReadWriteCopyStrategy<Element>CopyStrategyConfiguration. getCopyStrategyInstance(java.lang.ClassLoader loader)Get (and potentially) instantiate the instanceMethod parameters in net.sf.ehcache.config with type arguments of type Element Modifier and Type Method Description voidCopyStrategyConfiguration. setCopyStrategyInstance(ReadWriteCopyStrategy<Element> copyStrategy)Sets the CopyStrategy instance to use -
Uses of Element in net.sf.ehcache.constructs
Methods in net.sf.ehcache.constructs that return Element Modifier and Type Method Description ElementEhcacheDecoratorAdapter. get(java.io.Serializable key)Gets an element from the cache.ElementEhcacheDecoratorAdapter. get(java.lang.Object key)Gets an element from the cache.ElementEhcacheDecoratorAdapter. getQuiet(java.io.Serializable key)Gets an element from the cache, without updating Element statistics.ElementEhcacheDecoratorAdapter. getQuiet(java.lang.Object key)Gets an element from the cache, without updating Element statistics.ElementEhcacheDecoratorAdapter. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)This method will return, from the cache, the object associated with the argument "key".ElementEhcacheDecoratorAdapter. putIfAbsent(Element element)Put an element in the cache if no element is currently mapped to the elements key.ElementEhcacheDecoratorAdapter. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)ElementEhcacheDecoratorAdapter. removeAndReturnElement(java.lang.Object key)Removes and returns the element associated with the keyElementEhcacheDecoratorAdapter. replace(Element element)Replace the cached element only if an Element is currently cached for this keyMethods in net.sf.ehcache.constructs that return types with arguments of type Element Modifier and Type Method Description java.util.Map<java.lang.Object,Element>EhcacheDecoratorAdapter. getAll(java.util.Collection<?> keys)Gets all the elements from the cache for the keys provided.Methods in net.sf.ehcache.constructs with parameters of type Element Modifier and Type Method Description booleanEhcacheDecoratorAdapter. isExpired(Element element)Checks whether this cache element has expired.voidEhcacheDecoratorAdapter. put(Element element)Put an element in the cache.voidEhcacheDecoratorAdapter. put(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache.ElementEhcacheDecoratorAdapter. putIfAbsent(Element element)Put an element in the cache if no element is currently mapped to the elements key.ElementEhcacheDecoratorAdapter. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)voidEhcacheDecoratorAdapter. putQuiet(Element element)Put an element in the cache, without updating statistics, or updating listeners.voidEhcacheDecoratorAdapter. putWithWriter(Element element)Put an element in the cache writing through a CacheWriter.booleanEhcacheDecoratorAdapter. removeElement(Element element)Remove the Element mapped to the key for the supplied element if the value of the supplied Element compares equal to the value of the cached Element.ElementEhcacheDecoratorAdapter. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanEhcacheDecoratorAdapter. replace(Element old, Element element)Replace the cached element only if the current Element is equal to the supplied old Element.Method parameters in net.sf.ehcache.constructs with type arguments of type Element Modifier and Type Method Description voidEhcacheDecoratorAdapter. putAll(java.util.Collection<Element> elements)Puts a collection of elements in to the cache. -
Uses of Element in net.sf.ehcache.constructs.blocking
Methods in net.sf.ehcache.constructs.blocking that return Element Modifier and Type Method Description ElementBlockingCache. get(java.io.Serializable key)Gets an element from the cache.ElementBlockingCache. get(java.lang.Object key)Looks up an entry.ElementSelfPopulatingCache. get(java.lang.Object key)Looks up an entry.ElementUpdatingSelfPopulatingCache. get(java.lang.Object key)Looks up an object.ElementBlockingCache. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)This method is not appropriate to use with BlockingCache.protected static ElementSelfPopulatingCache. makeAndCheckElement(java.lang.Object key, java.lang.Object value)Both CacheEntryFactory can return an Element rather than just a regular value this method test this, making a fresh Element otherwise.ElementBlockingCache. putIfAbsent(Element element)ElementBlockingCache. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)ElementSelfPopulatingCache. refresh(java.lang.Object key)Refresh a single element.ElementSelfPopulatingCache. refresh(java.lang.Object key, boolean quiet)Refresh a single element.protected ElementSelfPopulatingCache. refreshElement(Element element, Ehcache backingCache, boolean quiet)Refresh a single element.Methods in net.sf.ehcache.constructs.blocking with parameters of type Element Modifier and Type Method Description voidBlockingCache. put(Element element)Adds an entry and unlocks itvoidBlockingCache. put(Element element, boolean doNotNotifyCacheReplicators)ElementBlockingCache. putIfAbsent(Element element)ElementBlockingCache. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)voidBlockingCache. putQuiet(Element element)voidBlockingCache. putWithWriter(Element element)protected voidSelfPopulatingCache. refreshElement(Element element, Ehcache backingCache)Refresh a single element.protected ElementSelfPopulatingCache. refreshElement(Element element, Ehcache backingCache, boolean quiet)Refresh a single element. -
Uses of Element in net.sf.ehcache.constructs.classloader
Methods in net.sf.ehcache.constructs.classloader that return Element Modifier and Type Method Description ElementClassLoaderAwareCache. get(java.io.Serializable arg0)Gets an element from the cache.ElementClassLoaderAwareCache. get(java.lang.Object arg0)Gets an element from the cache.ElementClassLoaderAwareCache. getQuiet(java.io.Serializable arg0)Gets an element from the cache, without updating Element statistics.ElementClassLoaderAwareCache. getQuiet(java.lang.Object arg0)Gets an element from the cache, without updating Element statistics.ElementClassLoaderAwareCache. getWithLoader(java.lang.Object arg0, CacheLoader arg1, java.lang.Object arg2)This method will return, from the cache, the object associated with the argument "key".ElementClassLoaderAwareCache. putIfAbsent(Element arg0)Put an element in the cache if no element is currently mapped to the elements key.ElementClassLoaderAwareCache. putIfAbsent(Element arg0, boolean arg1)Put an element in the cache if no element is currently mapped to the elements key.ElementInternalClassLoaderAwareCache. removeAndReturnElement(java.lang.Object arg0)Removes and returns the element associated with the keyElementClassLoaderAwareCache. replace(Element arg0)Replace the cached element only if an Element is currently cached for this keyMethods in net.sf.ehcache.constructs.classloader with parameters of type Element Modifier and Type Method Description booleanClassLoaderAwareCache. isExpired(Element arg0)Checks whether this cache element has expired.voidClassLoaderAwareCache. put(Element arg0)Put an element in the cache.voidClassLoaderAwareCache. put(Element arg0, boolean arg1)Put an element in the cache.ElementClassLoaderAwareCache. putIfAbsent(Element arg0)Put an element in the cache if no element is currently mapped to the elements key.ElementClassLoaderAwareCache. putIfAbsent(Element arg0, boolean arg1)Put an element in the cache if no element is currently mapped to the elements key.voidClassLoaderAwareCache. putQuiet(Element arg0)Put an element in the cache, without updating statistics, or updating listeners.voidClassLoaderAwareCache. putWithWriter(Element arg0)Put an element in the cache writing through a CacheWriter.booleanClassLoaderAwareCache. removeElement(Element arg0)Remove the Element mapped to the key for the supplied element if the value of the supplied Element compares equal to the value of the cached Element.ElementClassLoaderAwareCache. replace(Element arg0)Replace the cached element only if an Element is currently cached for this keybooleanClassLoaderAwareCache. replace(Element arg0, Element arg1)Replace the cached element only if the current Element is equal to the supplied old Element. -
Uses of Element in net.sf.ehcache.constructs.eventual
Methods in net.sf.ehcache.constructs.eventual that return Element Modifier and Type Method Description ElementStronglyConsistentCacheAccessor. get(java.io.Serializable key)ElementStronglyConsistentCacheAccessor. get(java.lang.Object key)ElementStronglyConsistentCacheAccessor. getQuiet(java.io.Serializable key)ElementStronglyConsistentCacheAccessor. getQuiet(java.lang.Object key)ElementStronglyConsistentCacheAccessor. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)ElementStronglyConsistentCacheAccessor. putIfAbsent(Element element)ElementStronglyConsistentCacheAccessor. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)ElementStronglyConsistentCacheAccessor. removeAndReturnElement(java.lang.Object key)ElementStronglyConsistentCacheAccessor. replace(Element element)Methods in net.sf.ehcache.constructs.eventual that return types with arguments of type Element Modifier and Type Method Description java.util.Map<java.lang.Object,Element>StronglyConsistentCacheAccessor. getAll(java.util.Collection<?> keys)Methods in net.sf.ehcache.constructs.eventual with parameters of type Element Modifier and Type Method Description voidStronglyConsistentCacheAccessor. put(Element element)voidStronglyConsistentCacheAccessor. put(Element element, boolean doNotNotifyCacheReplicators)ElementStronglyConsistentCacheAccessor. putIfAbsent(Element element)ElementStronglyConsistentCacheAccessor. putIfAbsent(Element element, boolean doNotNotifyCacheReplicators)voidStronglyConsistentCacheAccessor. putQuiet(Element element)voidStronglyConsistentCacheAccessor. putWithWriter(Element element)booleanStronglyConsistentCacheAccessor. removeElement(Element element)ElementStronglyConsistentCacheAccessor. replace(Element element)booleanStronglyConsistentCacheAccessor. replace(Element old, Element element)Method parameters in net.sf.ehcache.constructs.eventual with type arguments of type Element Modifier and Type Method Description voidStronglyConsistentCacheAccessor. putAll(java.util.Collection<Element> elements) -
Uses of Element in net.sf.ehcache.constructs.readthrough
Methods in net.sf.ehcache.constructs.readthrough that return Element Modifier and Type Method Description ElementReadThroughCache. get(java.io.Serializable key)ElementReadThroughCache. get(java.lang.Object key) -
Uses of Element in net.sf.ehcache.constructs.refreshahead
Methods in net.sf.ehcache.constructs.refreshahead that return Element Modifier and Type Method Description ElementRefreshAheadCache. get(java.io.Serializable key)ElementRefreshAheadCache. get(java.lang.Object key) -
Uses of Element in net.sf.ehcache.distribution
Methods in net.sf.ehcache.distribution that return Element Modifier and Type Method Description ElementLegacyEventMessage. getElement()ElementRmiEventMessage. getElement()ElementCachePeer. getQuiet(java.io.Serializable key)Gets an element from the cache, without updating Element statistics.ElementRMICachePeer. getQuiet(java.io.Serializable key)Gets an element from the cache, without updating Element statistics.ElementTransactionalRMICachePeer. getQuiet(java.io.Serializable key)Methods in net.sf.ehcache.distribution with parameters of type Element Modifier and Type Method Description voidRMISynchronousCacheReplicator. notifyElementEvicted(Ehcache cache, Element element)Called immediately after an element is evicted from the cache.voidRMISynchronousCacheReplicator. notifyElementExpired(Ehcache cache, Element element)Called immediately after an element is found to be expired.voidRMIAsynchronousCacheReplicator. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidRMISynchronousCacheReplicator. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidRMIAsynchronousCacheReplicator. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidRMISynchronousCacheReplicator. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidRMIAsynchronousCacheReplicator. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache.voidRMISynchronousCacheReplicator. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache.voidCachePeer. put(Element element)Put an element in the cache.voidRMICachePeer. put(Element element)Puts an Element into the underlying cache without notifying listeners or updating statistics.voidTransactionalRMICachePeer. put(Element element)protected static voidRMISynchronousCacheReplicator. replicatePutNotification(Ehcache cache, Element element)Does the actual RMI remote call.Constructors in net.sf.ehcache.distribution with parameters of type Element Constructor Description LegacyEventMessage(int event, java.io.Serializable key, Element element)Full constructor.RmiEventMessage(Ehcache cache, RmiEventMessage.RmiEventType type, java.io.Serializable key, Element element)Full constructor. -
Uses of Element in net.sf.ehcache.event
Methods in net.sf.ehcache.event that return Element Modifier and Type Method Description ElementRegisteredEventListeners.ElementCreationCallback. createElement(java.lang.ClassLoader loader)Materialize the relevant element in the given classloaderMethods in net.sf.ehcache.event with parameters of type Element Modifier and Type Method Description voidCacheEventListener. notifyElementEvicted(Ehcache cache, Element element)Called immediately after an element is evicted from the cache.voidCacheEventListenerAdapter. notifyElementEvicted(Ehcache cache, Element element)Called immediately after an element is evicted from the cache.voidRegisteredEventListeners. notifyElementEvicted(Element element, boolean remoteEvent)Notifies all registered listeners, in no guaranteed order, that an element has been evicted from the cachevoidTerracottaCacheEventReplication. notifyElementEvicted(Ehcache cache, Element element)Called immediately after an element is evicted from the cache.voidCacheEventListener. notifyElementExpired(Ehcache cache, Element element)Called immediately after an element is found to be expired.voidCacheEventListenerAdapter. notifyElementExpired(Ehcache cache, Element element)Called immediately after an element is found to be expired.voidTerracottaCacheEventReplication. notifyElementExpired(Ehcache cache, Element element)Called immediately after an element is found to be expired.voidRegisteredEventListeners. notifyElementExpiry(Element element, boolean remoteEvent)Notifies all registered listeners, in no guaranteed order, that an element has expiredvoidCacheEventListener. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidCacheEventListenerAdapter. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidRegisteredEventListeners. notifyElementPut(Element element, boolean remoteEvent)Notifies all registered listeners, in no guaranteed order, that an element was put into the cachevoidTerracottaCacheEventReplication. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidRegisteredEventListeners. notifyElementPutOrdered(Element element)NotifiesInternalCacheEventListeners, when a put happensvoidCacheEventListener. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidCacheEventListenerAdapter. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidRegisteredEventListeners. notifyElementRemoved(Element element, boolean remoteEvent)Notifies all registered listeners, in no guaranteed order, that an element was removedvoidTerracottaCacheEventReplication. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidRegisteredEventListeners. notifyElementRemovedOrdered(Element element)NotifiesInternalCacheEventListeners, when a remove happensvoidCacheEventListener. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache.voidCacheEventListenerAdapter. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache.voidRegisteredEventListeners. notifyElementUpdated(Element element, boolean remoteEvent)Notifies all registered listeners, in no guaranteed order, that an element in the cache was updatedvoidTerracottaCacheEventReplication. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache.voidRegisteredEventListeners. notifyElementUpdatedOrdered(Element oldElement, Element newElement)NotifiesInternalCacheEventListeners, when an update happens -
Uses of Element in net.sf.ehcache.search.attribute
Methods in net.sf.ehcache.search.attribute with parameters of type Element Modifier and Type Method Description java.lang.ObjectAttributeExtractor. attributeFor(Element element, java.lang.String attributeName)Extract the attribute value.java.lang.ObjectJavaBeanAttributeExtractor. attributeFor(Element element, java.lang.String attributeName)Extract the attribute value.java.lang.ObjectKeyObjectAttributeExtractor. attributeFor(Element element, java.lang.String attributeName)Extract the attribute value.java.lang.ObjectReflectionAttributeExtractor. attributeFor(Element e, java.lang.String attributeName)Evaluate the expression for the given elementjava.lang.ObjectValueObjectAttributeExtractor. attributeFor(Element element, java.lang.String attributeName)Extract the attribute value.<T> java.util.Map<java.lang.String,T>DynamicAttributesExtractor. attributesFor(Element element)Given a particular cache element, returns a map from attribute names, to their respective values to use for indexing. -
Uses of Element in net.sf.ehcache.search.expression
Methods in net.sf.ehcache.search.expression with parameters of type Element Modifier and Type Method Description booleanAlwaysMatch. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementbooleanAnd. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementbooleanComparableValue. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementbooleanCriteria. execute(Element element, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementbooleanEqualTo. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementbooleanILike. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementbooleanInCollection. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementbooleanIsNull. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)booleanNot. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementbooleanNotEqualTo. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementbooleanNotILike. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)booleanNotNull. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)booleanOr. execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache element -
Uses of Element in net.sf.ehcache.search.impl
Methods in net.sf.ehcache.search.impl with parameters of type Element Modifier and Type Method Description static java.util.Map<java.lang.String,? extends java.lang.Object>DynamicSearchChecker. getSearchAttributes(Element e, java.util.Set<java.lang.String> reservedAttrs, DynamicAttributesExtractor extractor)Extracts dynamically indexed search attributes from cache element using provided extractor, validating against reserved set of attribute names (provided by Ehcache search config)voidSearchManager. put(java.lang.String cacheName, int segmentId, Element element, byte[] serializedKey, java.util.Map<java.lang.String,AttributeExtractor> extractors, DynamicAttributesExtractor dynamicIndexer)Notify an element added to a segment of a given cache -
Uses of Element in net.sf.ehcache.store
Methods in net.sf.ehcache.store that return Element Modifier and Type Method Description ElementCopyStrategyHandler. copyElementForReadIfNeeded(Element element)Perform copy on read on an element if configuredElementTxCopyStrategyHandler. copyElementForReadIfNeeded(Element element)protected ElementMemoryStore. expireElement(java.lang.Object key)Evicts the element for the given key, if it exists and is expiredElementAuthoritativeTier. fault(java.lang.Object key, boolean updateStats)Marks the entry as not evictable and returns it atomicallyElementCacheStore. get(java.lang.Object key)ElementElementIdAssigningStore. get(java.lang.Object key)Gets an item from the cache.ElementLegacyStoreWrapper. get(java.lang.Object key)Gets an item from the cache.ElementLruMemoryStore. get(java.lang.Object key)Gets an item from the cache.ElementMemoryStore. get(java.lang.Object key)Gets an item from the cache.ElementStore. get(java.lang.Object key)Gets an item from the cache.ElementTxCopyingCacheStore. getOldElement(java.lang.Object key)Gets an element from the store, choosing the old value in case the element is currently mutated inside a transaction.ElementCacheStore. getQuiet(java.lang.Object key)ElementElementIdAssigningStore. getQuiet(java.lang.Object key)Gets anElementfrom the Store, without updating statisticsElementLegacyStoreWrapper. getQuiet(java.lang.Object key)Gets anElementfrom the Store, without updating statisticsElementLruMemoryStore. getQuiet(java.lang.Object key)Gets an item from the cache, without updating statistics.ElementMemoryStore. getQuiet(java.lang.Object key)Gets an item from the cache, without updating statistics.ElementStore. getQuiet(java.lang.Object key)Gets anElementfrom the Store, without updating statisticsElementCacheStore. putIfAbsent(Element element)ElementElementIdAssigningStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementLegacyStoreWrapper. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementLruMemoryStore. putIfAbsent(Element element)Unsupported in LruMemoryStoreElementMemoryStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementCacheStore. remove(java.lang.Object key)ElementElementIdAssigningStore. remove(java.lang.Object key)Removes an item from the cache.ElementLegacyStoreWrapper. remove(java.lang.Object key)Removes an item from the cache.ElementLruMemoryStore. remove(java.lang.Object key)Removes an Element from the store.ElementMemoryStore. remove(java.lang.Object key)Removes an Element from the store.ElementStore. remove(java.lang.Object key)Removes an item from the cache.ElementCacheStore. removeElement(Element element, ElementValueComparator comparator)ElementElementIdAssigningStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementLegacyStoreWrapper. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementLruMemoryStore. removeElement(Element element, ElementValueComparator comparator)Unsupported in LruMemoryStoreElementMemoryStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementCacheStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)ElementElementIdAssigningStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementLegacyStoreWrapper. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementLruMemoryStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementMemoryStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementCacheStore. replace(Element element)ElementElementIdAssigningStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keyElementLegacyStoreWrapper. replace(Element element)Replace the cached element only if an Element is currently cached for this keyElementLruMemoryStore. replace(Element element)Unsupported in LruMemoryStoreElementMemoryStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keyElementStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keyElementAbstractPolicy. selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)Finds the best eviction candidate based on the sampled elements.ElementPolicy. selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)Finds the best eviction candidate based on the sampled elements.ElementTerracottaStore. unsafeGet(java.lang.Object key)Returns the local value associated with the key.ElementTerracottaTransactionalCopyingCacheStore. unsafeGet(java.lang.Object key)Methods in net.sf.ehcache.store that return types with arguments of type Element Modifier and Type Method Description java.util.Collection<Element>MemoryStore. elementSet()Get a collection of the elements in this storejava.util.Map<java.lang.Object,Element>AbstractStore. getAll(java.util.Collection<?> keys)Retries the elements associated with a set of keys and update the statistics Keys which are not present in the cache will have null values associated with them in the returned mapjava.util.Map<java.lang.Object,Element>CacheStore. getAll(java.util.Collection<?> keys)java.util.Map<java.lang.Object,Element>ElementIdAssigningStore. getAll(java.util.Collection<?> keys)Retries the elements associated with a set of keys and update the statistics Keys which are not present in the cache will have null values associated with them in the returned mapjava.util.Map<java.lang.Object,Element>Store. getAll(java.util.Collection<?> keys)Retries the elements associated with a set of keys and update the statistics Keys which are not present in the cache will have null values associated with them in the returned mapjava.util.Map<java.lang.Object,Element>AbstractStore. getAllQuiet(java.util.Collection<?> keys)Retries the elements associated with a set of keys without updating the statistics Keys which are not present in the cache will have null values associated with them in the returned mapjava.util.Map<java.lang.Object,Element>CacheStore. getAllQuiet(java.util.Collection<?> keys)java.util.Map<java.lang.Object,Element>ElementIdAssigningStore. getAllQuiet(java.util.Collection<?> keys)Retries the elements associated with a set of keys without updating the statistics Keys which are not present in the cache will have null values associated with them in the returned mapjava.util.Map<java.lang.Object,Element>Store. getAllQuiet(java.util.Collection<?> keys)Retries the elements associated with a set of keys without updating the statistics Keys which are not present in the cache will have null values associated with them in the returned mapMethods in net.sf.ehcache.store with parameters of type Element Modifier and Type Method Description booleanMemoryStore. canPutWithoutEvicting(Element element)Check if adding an element won't provoke an eviction.booleanFifoPolicy. compare(Element element1, Element element2)Compares the desirableness for eviction of two elements Compares hit counts.booleanLfuPolicy. compare(Element element1, Element element2)Compares the desirableness for eviction of two elements Compares hit counts.booleanLruPolicy. compare(Element element1, Element element2)Compares the desirableness for eviction of two elements Compares hit counts.booleanPolicy. compare(Element element1, Element element2)Compares the desirableness for eviction of two elementsElementCopyStrategyHandler. copyElementForReadIfNeeded(Element element)Perform copy on read on an element if configuredElementTxCopyStrategyHandler. copyElementForReadIfNeeded(Element element)protected voidLruMemoryStore. doPut(Element element)Allow specialised actions over adding the element to the map.booleanDefaultElementValueComparator. equals(Element e1, Element e2)Compare the two elements.booleanElementValueComparator. equals(Element e1, Element e2)Compare the two elements.protected voidLruMemoryStore. evict(Element element)Evict theElement.protected booleanMemoryStore. evict(Element element)Evicts the element from the storeprotected booleanMemoryStore. expire(Element element)Evicts the element from the storevoidAuthoritativeTier. flush(Element element)This marks the entry as evictable again and updates relevant access statsprotected voidMemoryStore. notifyDirectEviction(Element element)Called when an element is evicted even before it could be installed inside the storeprotected voidLruMemoryStore. notifyExpiry(Element element)Before eviction elements are checked.voidBruteForceSearchManager. put(java.lang.String cacheName, int segmentId, Element element, byte[] key, java.util.Map<java.lang.String,AttributeExtractor> extractors, DynamicAttributesExtractor dynamicIndexer)booleanCacheStore. put(Element element)booleanElementIdAssigningStore. put(Element element)Puts an item into the store.booleanLegacyStoreWrapper. put(Element element)Puts an item into the store.booleanLruMemoryStore. put(Element element)Puts an item in the cache.booleanMemoryStore. put(Element element)Puts an item in the store.booleanStore. put(Element element)Puts an item into the store.booleanAuthoritativeTier. putFaulted(Element element)Deprecated.ElementCacheStore. putIfAbsent(Element element)ElementElementIdAssigningStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementLegacyStoreWrapper. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementLruMemoryStore. putIfAbsent(Element element)Unsupported in LruMemoryStoreElementMemoryStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.booleanCacheStore. putWithWriter(Element element, CacheWriterManager writerManager)booleanElementIdAssigningStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanLegacyStoreWrapper. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanLruMemoryStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanMemoryStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationElementCacheStore. removeElement(Element element, ElementValueComparator comparator)ElementElementIdAssigningStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementLegacyStoreWrapper. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementLruMemoryStore. removeElement(Element element, ElementValueComparator comparator)Unsupported in LruMemoryStoreElementMemoryStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementCacheStore. replace(Element element)booleanCacheStore. replace(Element old, Element element, ElementValueComparator comparator)ElementElementIdAssigningStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanElementIdAssigningStore. replace(Element old, Element element, ElementValueComparator comparator)Replace the cached element only if the value of the current Element is equal to the value of the supplied old Element.ElementLegacyStoreWrapper. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanLegacyStoreWrapper. replace(Element old, Element element, ElementValueComparator comparator)Replace the cached element only if the value of the current Element is equal to the value of the supplied old Element.ElementLruMemoryStore. replace(Element element)Unsupported in LruMemoryStorebooleanLruMemoryStore. replace(Element old, Element element, ElementValueComparator comparator)Unsupported in LruMemoryStoreElementMemoryStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanMemoryStore. replace(Element old, Element element, ElementValueComparator comparator)Replace the cached element only if the value of the current Element is equal to the value of the supplied old Element.ElementStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanStore. replace(Element old, Element element, ElementValueComparator comparator)Replace the cached element only if the value of the current Element is equal to the value of the supplied old Element.ElementAbstractPolicy. selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)Finds the best eviction candidate based on the sampled elements.ElementPolicy. selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)Finds the best eviction candidate based on the sampled elements.protected voidLruMemoryStore. spoolToDisk(Element element)Puts the element in the DiskStore.Method parameters in net.sf.ehcache.store with type arguments of type Element Modifier and Type Method Description voidAbstractStore. putAll(java.util.Collection<Element> elements)Puts a collection of elements into the store.voidCacheStore. putAll(java.util.Collection<Element> elements)voidElementIdAssigningStore. putAll(java.util.Collection<Element> elements)Puts a collection of elements into the store.voidStore. putAll(java.util.Collection<Element> elements)Puts a collection of elements into the store.Constructor parameters in net.sf.ehcache.store with type arguments of type Element Constructor Description CacheStore(CachingTier<java.lang.Object,Element> cache, AuthoritativeTier authority)Constructor :PCacheStore(CachingTier<java.lang.Object,Element> cache, AuthoritativeTier authority, CacheConfiguration cacheConfiguration)Deprecated.CopyingCacheStore(T store, boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategyInstance, java.lang.ClassLoader loader)Creates a copying instance of store, that wraps the actual storageCopyStrategyHandler(boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategy, java.lang.ClassLoader loader)Creates a CopyStrategyHandler based on the copy configurationTerracottaTransactionalCopyingCacheStore(TerracottaStore store, ReadWriteCopyStrategy<Element> copyStrategyInstance, java.lang.ClassLoader loader)Creates a terracotta copying instance of store, that wraps the actual storageTxCopyingCacheStore(T store, boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategyInstance, java.lang.ClassLoader loader)Creates a copying instance of store, that wraps the actual storageTxCopyStrategyHandler(boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategy, java.lang.ClassLoader loader)Creates a TxCopyStrategyHandler based on the copy configuration -
Uses of Element in net.sf.ehcache.store.cachingtier
Methods in net.sf.ehcache.store.cachingtier that return types with arguments of type Element Modifier and Type Method Description static OnHeapCachingTier<java.lang.Object,Element>OnHeapCachingTier. createOnHeapCache(Ehcache cache, Pool onHeapPool)Factory method -
Uses of Element in net.sf.ehcache.store.chm
Fields in net.sf.ehcache.store.chm declared as Element Modifier and Type Field Description ElementSelectableConcurrentHashMap.HashEntry. valueMethods in net.sf.ehcache.store.chm that return Element Modifier and Type Method Description ElementSelectableConcurrentHashMap. get(java.lang.Object key)Element[]SelectableConcurrentHashMap. getRandomValues(int size, java.lang.Object keyHint)ElementSelectableConcurrentHashMap. put(java.lang.Object key, Element element, long sizeOf)protected ElementSelectableConcurrentHashMap.Segment. put(java.lang.Object key, int hash, Element value, long sizeOf, boolean onlyIfAbsent, boolean fire)ElementSelectableConcurrentHashMap. putIfAbsent(java.lang.Object key, Element element, long sizeOf)ElementSelectableConcurrentHashMap. remove(java.lang.Object key)Methods in net.sf.ehcache.store.chm that return types with arguments of type Element Modifier and Type Method Description java.util.Set<java.util.Map.Entry<java.lang.Object,Element>>SelectableConcurrentHashMap. entrySet()java.util.Collection<Element>SelectableConcurrentHashMap. values()Methods in net.sf.ehcache.store.chm with parameters of type Element Modifier and Type Method Description protected SelectableConcurrentHashMap.HashEntrySelectableConcurrentHashMap.Segment. createHashEntry(java.lang.Object key, int hash, SelectableConcurrentHashMap.HashEntry next, Element value, long sizeOf)protected voidSelectableConcurrentHashMap.Segment. postInstall(java.lang.Object key, Element value)ElementSelectableConcurrentHashMap. put(java.lang.Object key, Element element, long sizeOf)protected ElementSelectableConcurrentHashMap.Segment. put(java.lang.Object key, int hash, Element value, long sizeOf, boolean onlyIfAbsent, boolean fire)ElementSelectableConcurrentHashMap. putIfAbsent(java.lang.Object key, Element element, long sizeOf)java.lang.ObjectSelectableConcurrentHashMap. storedObject(Element e)Return an object of the kind which will be stored when the element is going to be insertedConstructors in net.sf.ehcache.store.chm with parameters of type Element Constructor Description HashEntry(java.lang.Object key, int hash, SelectableConcurrentHashMap.HashEntry next, Element value, long sizeOf) -
Uses of Element in net.sf.ehcache.store.compound
Methods in net.sf.ehcache.store.compound that return Element Modifier and Type Method Description ElementImmutableValueElementCopyStrategy. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementLegacyCopyStrategyAdapter. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementNullReadWriteCopyStrategy. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementReadWriteSerializationCopyStrategy. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementSerializationCopyStrategy. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementImmutableValueElementCopyStrategy. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementLegacyCopyStrategyAdapter. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementNullReadWriteCopyStrategy. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementReadWriteSerializationCopyStrategy. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementSerializationCopyStrategy. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementReadWriteSerializationCopyStrategy. duplicateElementWithNewValue(Element element, java.lang.Object newValue)Make a duplicate of an element but using the specified valueMethods in net.sf.ehcache.store.compound with parameters of type Element Modifier and Type Method Description ElementImmutableValueElementCopyStrategy. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementLegacyCopyStrategyAdapter. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementNullReadWriteCopyStrategy. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementReadWriteSerializationCopyStrategy. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementSerializationCopyStrategy. copyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementImmutableValueElementCopyStrategy. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementLegacyCopyStrategyAdapter. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementNullReadWriteCopyStrategy. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementReadWriteSerializationCopyStrategy. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementSerializationCopyStrategy. copyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copyElementReadWriteSerializationCopyStrategy. duplicateElementWithNewValue(Element element, java.lang.Object newValue)Make a duplicate of an element but using the specified value -
Uses of Element in net.sf.ehcache.store.disk
Methods in net.sf.ehcache.store.disk that return Element Modifier and Type Method Description ElementDiskStore. evictElement(java.lang.Object key, DiskStorageFactory.DiskSubstitute substitute)Remove the matching mapping.ElementDiskStore. fault(java.lang.Object key, boolean updateStats)ElementDiskStore. get(java.lang.Object key)Gets an item from the cache.ElementDiskStore. getQuiet(java.lang.Object key)Gets anElementfrom the Store, without updating statisticsElementDiskStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.protected ElementDiskStorageFactory. read(DiskStorageFactory.DiskMarker marker)Read the data at the given marker, and return the associated deserialized Element.ElementDiskStore. remove(java.lang.Object key)Removes an item from the cache.ElementDiskStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementDiskStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementDiskStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keyElementDiskStorageFactory. retrieve(DiskStorageFactory.DiskSubstitute object)Decodes the suppliedDiskStorageFactory.DiskSubstitute.ElementDiskStorageFactory. retrieve(DiskStorageFactory.DiskSubstitute object, Segment segment)Decodes the suppliedDiskStorageFactory.DiskSubstitute, updating statistics.Methods in net.sf.ehcache.store.disk with parameters of type Element Modifier and Type Method Description DiskStorageFactory.DiskSubstituteDiskStorageFactory. create(Element element)Create a disk substitute for an elementvoidDiskStore. flush(Element element)booleanDiskStore. put(Element element)Puts an item into the store.booleanDiskStore. putFaulted(Element element)ElementDiskStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.booleanDiskStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationElementDiskStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementDiskStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanDiskStore. replace(Element old, Element element, ElementValueComparator comparator)Replace the cached element only if the value of the current Element is equal to the value of the supplied old Element.protected DiskStorageFactory.DiskMarkerDiskStorageFactory. write(Element element)Write the given element to disk, and return the associated marker. -
Uses of Element in net.sf.ehcache.terracotta
Methods in net.sf.ehcache.terracotta that return Element Modifier and Type Method Description ElementInternalEhcache. removeAndReturnElement(java.lang.Object key)Removes and returns the element associated with the key -
Uses of Element in net.sf.ehcache.transaction
Methods in net.sf.ehcache.transaction that return Element Modifier and Type Method Description ElementReadCommittedSoftLockImpl. getElement(TransactionID currentTransactionId, SoftLockID softLockId)Get the element the current transaction is supposed to see.ElementSoftLock. getElement(TransactionID currentTransactionId, SoftLockID softLockId)Get the element the current transaction is supposed to see.ElementSoftLockID. getNewElement()Get the Element with which this soft lock should be replaced by on commit.ElementAbstractTransactionStore. getOldElement(java.lang.Object key)Method to get to theElementmatching the key, oblivious of any in-flight transaction.ElementSoftLockID. getOldElement()Get the Element with which this soft lock should be replaced by on rollback.ElementAbstractTransactionStore. unsafeGet(java.lang.Object key)Returns the local value associated with the key.Methods in net.sf.ehcache.transaction with parameters of type Element Modifier and Type Method Description SoftLockIDAbstractSoftLockManager. createSoftLockID(TransactionID transactionID, java.lang.Object key, Element newElement, Element oldElement)Create a new soft lock ID and associated soft lock if necessary.SoftLockIDSoftLockManager. createSoftLockID(TransactionID transactionID, java.lang.Object key, Element newElement, Element oldElement)Create a new soft lock ID and associated soft lock if necessary.Constructors in net.sf.ehcache.transaction with parameters of type Element Constructor Description SoftLockID(TransactionID transactionID, java.lang.Object key, Element newElement, Element oldElement)Create a new SoftLockID instance -
Uses of Element in net.sf.ehcache.transaction.local
Methods in net.sf.ehcache.transaction.local that return Element Modifier and Type Method Description ElementJtaLocalTransactionStore. get(java.lang.Object key)Gets an item from the cache.ElementLocalTransactionStore. get(java.lang.Object key)Gets an item from the cache.ElementJtaLocalTransactionStore. getOldElement(java.lang.Object key)ElementJtaLocalTransactionStore. getQuiet(java.lang.Object key)Gets anElementfrom the Store, without updating statisticsElementLocalTransactionStore. getQuiet(java.lang.Object key)Gets anElementfrom the Store, without updating statisticsElementJtaLocalTransactionStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementLocalTransactionStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementJtaLocalTransactionStore. remove(java.lang.Object key)Removes an item from the cache.ElementLocalTransactionStore. remove(java.lang.Object key)Removes an item from the cache.ElementJtaLocalTransactionStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementLocalTransactionStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementJtaLocalTransactionStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementLocalTransactionStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementJtaLocalTransactionStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keyElementLocalTransactionStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keyMethods in net.sf.ehcache.transaction.local with parameters of type Element Modifier and Type Method Description booleanJtaLocalTransactionStore. put(Element element)Puts an item into the store.booleanLocalTransactionStore. put(Element element)Puts an item into the store.ElementJtaLocalTransactionStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementLocalTransactionStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.booleanJtaLocalTransactionStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanLocalTransactionStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationElementJtaLocalTransactionStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementLocalTransactionStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementJtaLocalTransactionStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanJtaLocalTransactionStore. replace(Element old, Element element, ElementValueComparator comparator)Replace the cached element only if the value of the current Element is equal to the value of the supplied old Element.ElementLocalTransactionStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanLocalTransactionStore. replace(Element old, Element element, ElementValueComparator comparator)Replace the cached element only if the value of the current Element is equal to the value of the supplied old Element.Method parameters in net.sf.ehcache.transaction.local with type arguments of type Element Modifier and Type Method Description voidJtaLocalTransactionStore. putAll(java.util.Collection<Element> elements)Puts a collection of elements into the store. -
Uses of Element in net.sf.ehcache.transaction.xa
Methods in net.sf.ehcache.transaction.xa that return Element Modifier and Type Method Description ElementXATransactionContext. get(java.lang.Object key)Filter to get operations on underlying Store.ElementXATransactionStore. get(java.lang.Object key)Gets an item from the cache.ElementXATransactionStore. getQuiet(java.lang.Object key)Gets anElementfrom the Store, without updating statisticsElementXATransactionStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.ElementXATransactionStore. remove(java.lang.Object key)Removes an item from the cache.ElementXATransactionStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementXATransactionStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementXATransactionStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keyMethods in net.sf.ehcache.transaction.xa with parameters of type Element Modifier and Type Method Description voidXATransactionContext. addCommand(Command command, Element element)Add a command to the current LocalTransactionContextbooleanXATransactionStore. put(Element element)Puts an item into the store.ElementXATransactionStore. putIfAbsent(Element element)Put an element in the store if no element is currently mapped to the elements key.booleanXATransactionStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationElementXATransactionStore. removeElement(Element element, ElementValueComparator comparator)Remove the Element mapped to the key for the supplied element if the value of the supplied Element is equal to the value of the cached Element.ElementXATransactionStore. replace(Element element)Replace the cached element only if an Element is currently cached for this keybooleanXATransactionStore. replace(Element old, Element element, ElementValueComparator comparator)Replace the cached element only if the value of the current Element is equal to the value of the supplied old Element. -
Uses of Element in net.sf.ehcache.transaction.xa.commands
Methods in net.sf.ehcache.transaction.xa.commands that return Element Modifier and Type Method Description ElementStorePutCommand. getElement()Getter to the Element instance to be put in the Storeprotected ElementAbstractStoreCommand. getNewElement()Get the new element to put in the underlying storeprotected ElementAbstractStoreCommand. getOldElement()Get the element in the underlying store at the time this command is createdConstructors in net.sf.ehcache.transaction.xa.commands with parameters of type Element Constructor Description AbstractStoreCommand(Element oldElement, Element newElement)Create a Store CommandStorePutCommand(Element oldElement, Element newElement)Create a StorePutCommandStoreRemoveCommand(java.lang.Object key, Element oldElement)Create a StoreRemoveCommand -
Uses of Element in net.sf.ehcache.writer
Methods in net.sf.ehcache.writer with parameters of type Element Modifier and Type Method Description voidCacheWriterManager. put(Element element)Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.voidAbstractCacheWriter. throwAway(Element element, SingleOperationType operationType, java.lang.RuntimeException e)This method will be called, whenever an Element couldn't be handled by the writer and all theretryAttemptshave been tried.voidCacheWriter. throwAway(Element element, SingleOperationType operationType, java.lang.RuntimeException e)This method will be called, whenever an Element couldn't be handled by the writer and all theretryAttemptshave been tried.voidAbstractCacheWriter. write(Element element)Write the specified value under the specified key to the underlying store.voidCacheWriter. write(Element element)Write the specified value under the specified key to the underlying store.Method parameters in net.sf.ehcache.writer with type arguments of type Element Modifier and Type Method Description voidAbstractCacheWriter. writeAll(java.util.Collection<Element> elements)Write the specified Elements to the underlying store.voidCacheWriter. writeAll(java.util.Collection<Element> elements)Write the specified Elements to the underlying store. -
Uses of Element in net.sf.ehcache.writer.writebehind
Methods in net.sf.ehcache.writer.writebehind with parameters of type Element Modifier and Type Method Description voidWriteBehindManager. put(Element element)Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.voidAbstractWriteBehindQueue. write(Element element)Add a write operation for a given element.voidNonStopWriteBehind. write(Element element)voidWriteBehind. write(Element element)Add a write operation for a given element.voidWriteBehindQueueManager. write(Element element)Add a write operation for a given element. -
Uses of Element in net.sf.ehcache.writer.writebehind.operations
Methods in net.sf.ehcache.writer.writebehind.operations that return Element Modifier and Type Method Description ElementWriteOperation. getElement()Retrieves the element that will be used for this operationConstructors in net.sf.ehcache.writer.writebehind.operations with parameters of type Element Constructor Description WriteOperation(Element element)Create a new write operation for a particular elementWriteOperation(Element element, long creationTime)Create a new write operation for a particular element and creation timeConstructor parameters in net.sf.ehcache.writer.writebehind.operations with type arguments of type Element Constructor Description WriteAllOperation(java.util.List<Element> elements)Create a new write all operation for the provided list of element -
Uses of Element in net.sf.ehcache.writer.writethrough
Methods in net.sf.ehcache.writer.writethrough with parameters of type Element Modifier and Type Method Description voidWriteThroughManager. put(Element element)Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.
-