Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » extra » [javadoc | source]
com.opensymphony.oscache.extra
public class: CacheEntryEventListenerImpl [javadoc | source]
java.lang.Object
   com.opensymphony.oscache.extra.CacheEntryEventListenerImpl

All Implemented Interfaces:
    CacheEntryEventListener

Implementation of a CacheEntryEventListener. It use the events to count the operations performed on the cache.

We are not using any synchronized so that this does not become a bottleneck. The consequence is that on retrieving values, the operations that are currently being done won't be counted.

Constructor:
 public CacheEntryEventListenerImpl() 
Method from com.opensymphony.oscache.extra.CacheEntryEventListenerImpl Summary:
cacheEntryAdded,   cacheEntryFlushed,   cacheEntryRemoved,   cacheEntryUpdated,   cacheFlushed,   cacheGroupFlushed,   cachePatternFlushed,   getCacheFlushedCount,   getEntryAddedCount,   getEntryFlushedCount,   getEntryRemovedCount,   getEntryUpdatedCount,   getGroupFlushedCount,   getPatternFlushedCount,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.oscache.extra.CacheEntryEventListenerImpl Detail:
 public  void cacheEntryAdded(CacheEntryEvent event) 
    Handles the event fired when an entry is added in the cache.
 public  void cacheEntryFlushed(CacheEntryEvent event) 
    Handles the event fired when an entry is flushed from the cache.
 public  void cacheEntryRemoved(CacheEntryEvent event) 
    Handles the event fired when an entry is removed from the cache.
 public  void cacheEntryUpdated(CacheEntryEvent event) 
    Handles the event fired when an entry is updated in the cache.
 public  void cacheFlushed(CachewideEvent event) 
    Handles the event fired when a cache flush occurs.
 public  void cacheGroupFlushed(CacheGroupEvent event) 
    Handles the event fired when a group is flushed from the cache.
 public  void cachePatternFlushed(CachePatternEvent event) 
    Handles the event fired when a pattern is flushed from the cache.
 public int getCacheFlushedCount() 
    Gets the cache flush counter
 public int getEntryAddedCount() 
    Gets the add counter
 public int getEntryFlushedCount() 
    Gets the flushed counter
 public int getEntryRemovedCount() 
    Gets the removed counter
 public int getEntryUpdatedCount() 
    Gets the updated counter
 public int getGroupFlushedCount() 
    Gets the group flush counter
 public int getPatternFlushedCount() 
    Gets the pattern flush counter
 public String toString() 
    Returns the internal values in a string form