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.distribution This package is for cache replication. 
net.sf.ehcache.event This package contains interfaces and classes for listening to events. 
net.sf.ehcache.store Store package. 
 

Uses of Element in net.sf.ehcache
 

Methods in net.sf.ehcache that return Element
 Element Cache.get(java.io.Serializable key)
          Gets an element from the cache.
 Element Cache.get(java.lang.Object key)
          Gets an element from the cache.
 Element Cache.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 Element Cache.getQuiet(java.lang.Object key)
          Gets an element from the cache, without updating Element statistics.
 

Methods in net.sf.ehcache with parameters of type Element
 void Cache.put(Element element)
          Put an element in the cache.
 void Cache.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.
 boolean Cache.isExpired(Element element)
          Checks whether this cache element has expired.
 

Uses of Element in net.sf.ehcache.distribution
 

Methods in net.sf.ehcache.distribution that return Element
 Element EventMessage.getElement()
           
 

Methods in net.sf.ehcache.distribution with parameters of type Element
 void CachePeer.put(Element element)
          Put an element in the cache.
 void RMIAsynchronousCacheReplicator.notifyElementPut(Cache cache, Element element)
          Called immediately after an element has been put into the cache. The Cache.put(net.sf.ehcache.Element) method will block until this method returns.

Implementers may wish to have access to the Element's fields, including value, so the element is provided. Implementers should be careful not to modify the element. The effect of any modifications is undefined.

This implementation queues the put notification for in-order replication to peers.

 void RMIAsynchronousCacheReplicator.notifyElementUpdated(Cache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RMIAsynchronousCacheReplicator.notifyElementRemoved(Cache cache, Element element)
          Called immediately after an element has been removed.
 void RMICachePeer.put(Element element)
          Puts an Element into the underlying cache without notifying listeners or updating statistics.
 void RMISynchronousCacheReplicator.notifyElementPut(Cache cache, Element element)
          Called immediately after an element has been put into the cache.
 void RMISynchronousCacheReplicator.notifyElementUpdated(Cache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RMISynchronousCacheReplicator.notifyElementRemoved(Cache cache, Element element)
          Called immediately after an element has been removed.
 void RMISynchronousCacheReplicator.notifyElementExpired(Cache cache, Element element)
          Called immediately after an element is found to be expired. The Cache.remove(Object) method will block until this method returns.

As the Element has been expired, only what was the key of the element is known.

Elements are checked for expiry in ehcache at the following times:

  • When a get request is made
  • When an element is spooled to the diskStore in accordance with a MemoryStore eviction policy
  • In the DiskStore when the expiry thread runs, which by default is Cache.DEFAULT_EXPIRY_THREAD_INTERVAL_SECONDS
If an element is found to be expired, it is deleted and this method is notified.

This implementation does not propagate expiries.

 

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 CacheEventListener.notifyElementRemoved(Cache cache, Element element)
          Called immediately after an element has been removed.
 void CacheEventListener.notifyElementPut(Cache cache, Element element)
          Called immediately after an element has been put into the cache.
 void CacheEventListener.notifyElementUpdated(Cache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void CacheEventListener.notifyElementExpired(Cache cache, Element element)
          Called immediately after an element is found to be expired.
 void RegisteredEventListeners.notifyElementRemoved(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element was removed
 void RegisteredEventListeners.notifyElementPut(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element was put into 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
 void RegisteredEventListeners.notifyElementExpiry(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element has expired
 

Uses of Element in net.sf.ehcache.store
 

Methods in net.sf.ehcache.store that return Element
 Element DiskStore.get(java.lang.Object key)
          Gets an Element from the Disk Store.
 Element DiskStore.getQuiet(java.lang.Object key)
          Gets an Element from the Disk Store, without updating statistics
 Element DiskStore.remove(java.lang.Object key)
          Removes an item from the disk store.
 Element Store.get(java.lang.Object key)
          Gets an item from the cache.
 Element Store.remove(java.lang.Object key)
          Removes an item from the cache.
 Element MemoryStore.get(java.lang.Object key)
          Gets an item from the cache.
 Element MemoryStore.getQuiet(java.lang.Object key)
          Gets an item from the cache, without updating Element statistics.
 Element MemoryStore.remove(java.lang.Object key)
          Removes an Element from the store.
 

Methods in net.sf.ehcache.store with parameters of type Element
 void DiskStore.put(Element element)
          Puts an element into the disk store.
protected  void FifoMemoryStore.doPut(Element element)
          Allow specialised actions over adding the element to the map
 void Store.put(Element element)
          Puts an item into the cache.
 void LfuMemoryStore.doPut(Element elementJustAdded)
          Puts an element into the cache.
 void MemoryStore.put(Element element)
          Puts an item in the cache.
protected  void MemoryStore.doPut(Element element)
          Allow specialised actions over adding the element to the map.
protected  void MemoryStore.spoolToDisk(Element element)
          Puts the element in the DiskStore.
protected  void MemoryStore.evict(Element element)
          Evict the Element.
protected  void MemoryStore.notifyExpiry(Element element)
          Before eviction elements are checked.
 


ehcache

true