ehcache

Uses of Class
net.sf.ehcache.Element

Packages that use Element
net.sf.ehcache This package contains the public API for using ehcache. 
net.sf.ehcache.constructs.blocking Doug Lea in his book Concurrent Programming in Java talks about concurrency support constructs. 
net.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.statistics This package contains classes related to LiveCacheStatistics and its implementation. 
net.sf.ehcache.store Store package. 
net.sf.ehcache.store.chm CHM package. 
net.sf.ehcache.transaction This package contains classes for controlling cache operations (for transactional use) 
net.sf.ehcache.transaction.xa This package contains the functionality to provide XA support to a transactional Cache. 
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
 Element Cache.get(java.lang.Object key)
          Gets an element from the cache.
 Element Ehcache.get(java.lang.Object key)
          Gets an element from the cache.
 Element Cache.get(java.io.Serializable key)
          Gets an element from the cache.
 Element Ehcache.get(java.io.Serializable key)
          Gets an element from the cache.
 Element CacheEntry.getElement()
          Retrieves the element of this cache entry.
 Element Cache.getQuiet(java.lang.Object key)
          Gets an element from the cache, without updating Element statistics.
 Element Ehcache.getQuiet(java.lang.Object key)
          Gets an element from the cache, without updating Element statistics.
 Element Cache.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 Element Ehcache.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 Element Cache.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".
 Element Ehcache.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".
 

Methods in net.sf.ehcache with parameters of type Element
 boolean Cache.isExpired(Element element)
          Checks whether this cache element has expired.
 boolean Ehcache.isExpired(Element element)
          Checks whether this cache element has expired.
 void Cache.put(Element element)
          Put an element in the cache.
 void Ehcache.put(Element element)
          Put an element in the cache.
 void Cache.put(Element element, boolean doNotNotifyCacheReplicators)
          Put an element in the cache.
 void Ehcache.put(Element element, boolean doNotNotifyCacheReplicators)
          Put an element in the cache.
 void Cache.putQuiet(Element element)
          Put an element in the cache, without updating statistics, or updating listeners.
 void Ehcache.putQuiet(Element element)
          Put an element in the cache, without updating statistics, or updating listeners.
 void Cache.putWithWriter(Element element)
          Put an element in the cache writing through a CacheWriter.
 void Ehcache.putWithWriter(Element element)
          Put an element in the cache writing through a CacheWriter.
 void ElementEvictionData.resetLastAccessTime(Element element)
          Resets the last access time.
 void DefaultElementEvictionData.resetLastAccessTime(Element element)
          Resets the last access time.
 void ElementEvictionData.updateLastAccessTime(long time, Element element)
          Updates the last access time.
 void DefaultElementEvictionData.updateLastAccessTime(long time, Element element)
          Updates the last access time.
 

Constructors in net.sf.ehcache with parameters of type Element
CacheEntry(java.lang.Object key, Element element)
          Creates a new cache entry.
 

Uses of Element in net.sf.ehcache.constructs.blocking
 

Methods in net.sf.ehcache.constructs.blocking that return Element
 Element BlockingCache.get(java.lang.Object key)
          Looks up an entry.
 Element UpdatingSelfPopulatingCache.get(java.lang.Object key)
          Looks up an object.
 Element SelfPopulatingCache.get(java.lang.Object key)
          Looks up an entry.
 Element BlockingCache.get(java.io.Serializable key)
          Gets an element from the cache.
 Element BlockingCache.getQuiet(java.lang.Object key)
          Gets an element from the cache, without updating Element statistics.
 Element BlockingCache.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 Element BlockingCache.getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)
          This method is not appropriate to use with BlockingCache.
protected static Element SelfPopulatingCache.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.
 Element SelfPopulatingCache.refresh(java.lang.Object key)
          Refresh a single element.
 Element SelfPopulatingCache.refresh(java.lang.Object key, boolean quiet)
          Refresh a single element.
protected  Element SelfPopulatingCache.refreshElement(Element element, Ehcache backingCache, boolean quiet)
          Refresh a single element.
 

Methods in net.sf.ehcache.constructs.blocking with parameters of type Element
 boolean BlockingCache.isExpired(Element element)
          Checks whether this cache element has expired.
 void BlockingCache.put(Element element)
          Adds an entry and unlocks it
 void BlockingCache.put(Element element, boolean doNotNotifyCacheReplicators)
          Put an element in the cache.
 void BlockingCache.putQuiet(Element element)
          Put an element in the cache, without updating statistics, or updating listeners.
 void BlockingCache.putWithWriter(Element element)
          Put an element in the cache writing through a CacheWriter.
protected  void SelfPopulatingCache.refreshElement(Element element, Ehcache backingCache)
          Refresh a single element.
protected  Element SelfPopulatingCache.refreshElement(Element element, Ehcache backingCache, boolean quiet)
          Refresh a single element.
 

Uses of Element in net.sf.ehcache.distribution
 

Methods in net.sf.ehcache.distribution that return Element
 Element EventMessage.getElement()
           
 Element RMICachePeer.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 Element CachePeer.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 

Methods in net.sf.ehcache.distribution with parameters of type Element
 void RMISynchronousCacheReplicator.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void RMISynchronousCacheReplicator.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.
 void RMISynchronousCacheReplicator.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void RMIAsynchronousCacheReplicator.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void RMISynchronousCacheReplicator.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void RMIAsynchronousCacheReplicator.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void RMISynchronousCacheReplicator.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RMIAsynchronousCacheReplicator.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RMICachePeer.put(Element element)
          Puts an Element into the underlying cache without notifying listeners or updating statistics.
 void CachePeer.put(Element element)
          Put an element in the cache.
protected static void RMISynchronousCacheReplicator.replicatePutNotification(Ehcache cache, Element element)
          Does the actual RMI remote call.
 

Constructors in net.sf.ehcache.distribution with parameters of type Element
EventMessage(int event, java.io.Serializable key, Element element)
          Full constructor.
 

Uses of Element in net.sf.ehcache.event
 

Methods in net.sf.ehcache.event with parameters of type Element
 void TerracottaCacheEventReplication.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void CacheEventListener.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void RegisteredEventListeners.notifyElementEvicted(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element has been evicted from the cache
 void TerracottaCacheEventReplication.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.
 void CacheEventListener.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.
 void RegisteredEventListeners.notifyElementExpiry(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element has expired
 void TerracottaCacheEventReplication.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void CacheEventListener.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void RegisteredEventListeners.notifyElementPut(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element was put into the cache
 void TerracottaCacheEventReplication.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void CacheEventListener.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void RegisteredEventListeners.notifyElementRemoved(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element was removed
 void TerracottaCacheEventReplication.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void CacheEventListener.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RegisteredEventListeners.notifyElementUpdated(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element in the cache was updated
 

Uses of Element in net.sf.ehcache.statistics
 

Methods in net.sf.ehcache.statistics with parameters of type Element
 void NullLiveCacheStatisticsData.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void LiveCacheStatisticsWrapper.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void LiveCacheStatisticsImpl.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void NullLiveCacheStatisticsData.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.
 void LiveCacheStatisticsWrapper.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.
 void LiveCacheStatisticsImpl.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.
 void NullLiveCacheStatisticsData.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void LiveCacheStatisticsWrapper.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void LiveCacheStatisticsImpl.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void NullLiveCacheStatisticsData.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void LiveCacheStatisticsWrapper.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void LiveCacheStatisticsImpl.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void NullLiveCacheStatisticsData.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void LiveCacheStatisticsWrapper.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void LiveCacheStatisticsImpl.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 

Uses of Element in net.sf.ehcache.store
 

Methods in net.sf.ehcache.store that return Element
protected  Element MemoryStore.findEvictionCandidate(Element elementJustAdded)
          Find a "relatively" unused element, but not the element just added.
 Element LruMemoryStore.get(java.lang.Object key)
          Gets an item from the cache.
 Element XATransactionalStore.get(java.lang.Object key)
          Gets an item from the cache.
 Element Store.get(java.lang.Object key)
          Gets an item from the cache.
 Element MemoryStore.get(java.lang.Object key)
          Gets an item from the cache.
 Element DiskStore.get(java.lang.Object key)
          Gets an Element from the Disk Store.
 Element LruMemoryStore.getQuiet(java.lang.Object key)
          Gets an item from the cache, without updating statistics.
 Element XATransactionalStore.getQuiet(java.lang.Object key)
          Gets an Element from the Store, without updating statistics
 Element Store.getQuiet(java.lang.Object key)
          Gets an Element from the Store, without updating statistics
 Element MemoryStore.getQuiet(java.lang.Object key)
          Gets an item from the cache, without updating statistics.
 Element DiskStore.getQuiet(java.lang.Object key)
          Gets an Element from the Disk Store, without updating statistics
 Element LruMemoryStore.remove(java.lang.Object key)
          Removes an Element from the store.
 Element XATransactionalStore.remove(java.lang.Object key)
          Removes an item from the cache.
 Element Store.remove(java.lang.Object key)
          Removes an item from the cache.
 Element MemoryStore.remove(java.lang.Object key)
          Removes an Element from the store.
 Element DiskStore.remove(java.lang.Object key)
          Removes an item from the disk store.
 Element LruMemoryStore.removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)
          Removes an item from the store and the cache writer manager in an atomic operation.
 Element XATransactionalStore.removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)
          XATransactionalStore to remove including from the underlying data store.
 Element Store.removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)
          Removes an item from the store and the cache writer manager in an atomic operation.
 Element MemoryStore.removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)
          Removes an item from the store and the cache writer manager in an atomic operation.
 Element DiskStore.removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)
          Removes an item from the store and the cache writer manager in an atomic operation.
protected  Element[] MemoryStore.sampleElements()
          Uses random numbers to sample the entire map.
protected  Element[] MemoryStore.sampleElements(int size)
          Uses random numbers to sample the entire map.
 Element AbstractPolicy.selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)
          Finds the best eviction candidate based on the sampled elements.
 Element Policy.selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)
          Finds the best eviction candidate based on the sampled elements.
 

Methods in net.sf.ehcache.store with parameters of type Element
 boolean LruPolicy.compare(Element element1, Element element2)
          Compares the desirableness for eviction of two elements Compares hit counts.
 boolean FifoPolicy.compare(Element element1, Element element2)
          Compares the desirableness for eviction of two elements Compares hit counts.
 boolean LfuPolicy.compare(Element element1, Element element2)
          Compares the desirableness for eviction of two elements Compares hit counts.
 boolean Policy.compare(Element element1, Element element2)
          Compares the desirableness for eviction of two elements
protected  void LruMemoryStore.doPut(Element element)
          Allow specialised actions over adding the element to the map.
protected  void MemoryStore.doPut(Element elementJustAdded)
          Puts an element into the store
protected  void LruMemoryStore.evict(Element element)
          Evict the Element.
protected  void MemoryStore.evict(Element element)
          Evict the Element.
protected  Element MemoryStore.findEvictionCandidate(Element elementJustAdded)
          Find a "relatively" unused element, but not the element just added.
protected  void LruMemoryStore.notifyExpiry(Element element)
          Before eviction elements are checked.
protected  void MemoryStore.notifyExpiry(Element element)
          Before eviction elements are checked.
 boolean LruMemoryStore.put(Element element)
          Puts an item in the cache.
 boolean XATransactionalStore.put(Element element)
          Puts an item into the store.
 boolean Store.put(Element element)
          Puts an item into the store.
 boolean MemoryStore.put(Element element)
          Puts an item in the store.
 boolean DiskStore.put(Element element)
          Puts an element into the disk store.
 boolean LruMemoryStore.putWithWriter(Element element, CacheWriterManager writerManager)
          Puts an item into the store and the cache writer manager in an atomic operation
 boolean XATransactionalStore.putWithWriter(Element element, CacheWriterManager writerManager)
          XATransactionalStore to put including to the underlying data store.
 boolean Store.putWithWriter(Element element, CacheWriterManager writerManager)
          Puts an item into the store and the cache writer manager in an atomic operation
 boolean MemoryStore.putWithWriter(Element element, CacheWriterManager writerManager)
          Puts an item into the store and the cache writer manager in an atomic operation
 boolean DiskStore.putWithWriter(Element element, CacheWriterManager writerManager)
          Puts an item into the store and the cache writer manager in an atomic operation
protected  void MemoryStore.removeElementChosenByEvictionPolicy(Element elementJustAdded)
          Removes the element chosen by the eviction policy
 Element AbstractPolicy.selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)
          Finds the best eviction candidate based on the sampled elements.
 Element AbstractPolicy.selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)
          Finds the best eviction candidate based on the sampled elements.
 Element Policy.selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)
          Finds the best eviction candidate based on the sampled elements.
 Element Policy.selectedBasedOnPolicy(Element[] sampledElements, Element justAdded)
          Finds the best eviction candidate based on the sampled elements.
protected  void LruMemoryStore.spoolToDisk(Element element)
          Puts the element in the DiskStore.
protected  void MemoryStore.spoolToDisk(Element element)
          Puts the element in the DiskStore.
 

Uses of Element in net.sf.ehcache.store.chm
 

Methods in net.sf.ehcache.store.chm that return Element
 Element[] SelectableConcurrentHashMap.getRandomValues(int size)
           
 

Uses of Element in net.sf.ehcache.transaction
 

Methods in net.sf.ehcache.transaction that return Element
 Element TransactionContext.get(java.lang.Object key)
          Filter to get operations on underlying Store.
 Element StorePutCommand.getElement()
          Getter to the Element instance to be put in the Store
 

Methods in net.sf.ehcache.transaction with parameters of type Element
 void TransactionContext.addCommand(Command command, Element element)
          Add a command to the current TransactionContext
 

Constructors in net.sf.ehcache.transaction with parameters of type Element
StorePutCommand(Element element)
          Constructs a put command for an Element
StorePutWithWriterCommandImpl(Element element)
          Constructs a put command for an Element
 

Uses of Element in net.sf.ehcache.transaction.xa
 

Methods in net.sf.ehcache.transaction.xa that return Element
 Element XATransactionContext.get(java.lang.Object key)
          Filter to get operations on underlying Store.
 Element EhcacheXAResourceImpl.get(java.lang.Object key)
          Fall through methods to the underlying cache that will hit potential "guards" or "guarding read-only store"
 Element SyncAwareStore.get(java.lang.Object key)
          Gets an item from the cache.
 Element EhcacheXAResource.get(java.lang.Object key)
          Fall through methods to the underlying cache that will hit potential "guards" or "guarding read-only store"
 Element EhcacheXAResourceImpl.getQuiet(java.lang.Object key)
          Fall through methods to the underlying cache that will hit potential "guards" or "guarding read-only store"
 Element SyncAwareStore.getQuiet(java.lang.Object key)
          Gets an Element from the Store, without updating statistics
 Element EhcacheXAResource.getQuiet(java.lang.Object key)
          Fall through methods to the underlying cache that will hit potential "guards" or "guarding read-only store"
 Element SyncAwareStore.remove(java.lang.Object key)
          does underlying store.remove after acquiring write lock for key
 Element SyncAwareStore.removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)
          Removes an item from the store and the cache writer manager in an atomic operation.
 

Methods in net.sf.ehcache.transaction.xa with parameters of type Element
 void XATransactionContext.addCommand(Command command, Element element)
          Add a command to the current TransactionContext
 boolean SyncAwareStore.put(Element element)
          does underlying store.put after acquiring write lock for key
 boolean SyncAwareStore.putWithWriter(Element element, CacheWriterManager writerManager)
          Puts an item into the store and the cache writer manager in an atomic operation
 

Uses of Element in net.sf.ehcache.writer
 

Methods in net.sf.ehcache.writer with parameters of type Element
 void CacheWriterManager.put(Element element)
          Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.
 void AbstractCacheWriter.write(Element element)
          Write the specified value under the specified key to the underlying store.
 void CacheWriter.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
 void AbstractCacheWriter.writeAll(java.util.Collection<Element> elements)
          Write the specified Elements to the underlying store.
 void CacheWriter.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
 void WriteBehindManager.put(Element element)
          Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.
 void WriteBehind.write(Element element)
          Add a write operation for a given element.
 void WriteBehindQueue.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
 Element WriteOperation.getElement()
          Retrieves the element that will be used for this operation
 

Constructors in net.sf.ehcache.writer.writebehind.operations with parameters of type Element
WriteOperation(Element element)
          Create a new write operation for a particular element
WriteOperation(Element element, long creationTime)
          Create a new write operation for a particular element and creation time
 

Constructor parameters in net.sf.ehcache.writer.writebehind.operations with type arguments of type Element
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
 void WriteThroughManager.put(Element element)
          Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.
 


ehcache

true