|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.opensymphony.oscache.extra.CacheEntryEventListenerImpl
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 Summary | |
CacheEntryEventListenerImpl()
Constructor, empty for us |
|
| Method Summary | |
void |
cacheEntryAdded(CacheEntryEvent event)
Handles the event fired when an entry is added in the cache. |
void |
cacheEntryFlushed(CacheEntryEvent event)
Handles the event fired when an entry is flushed from the cache. |
void |
cacheEntryRemoved(CacheEntryEvent event)
Handles the event fired when an entry is removed from the cache. |
void |
cacheEntryUpdated(CacheEntryEvent event)
Handles the event fired when an entry is updated in the cache. |
void |
cacheFlushed(CachewideEvent event)
Handles the event fired when a cache flush occurs. |
void |
cacheGroupFlushed(CacheGroupEvent event)
Handles the event fired when a group is flushed from the cache. |
void |
cachePatternFlushed(CachePatternEvent event)
Handles the event fired when a pattern is flushed from the cache. |
int |
getCacheFlushedCount()
Gets the cache flush counter |
int |
getEntryAddedCount()
Gets the add counter |
int |
getEntryFlushedCount()
Gets the flushed counter |
int |
getEntryRemovedCount()
Gets the removed counter |
int |
getEntryUpdatedCount()
Gets the updated counter |
int |
getGroupFlushedCount()
Gets the group flush counter |
int |
getPatternFlushedCount()
Gets the pattern flush counter |
java.lang.String |
toString()
Returns the internal values in a string form |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CacheEntryEventListenerImpl()
| Method Detail |
public int getEntryAddedCount()
public int getEntryFlushedCount()
public int getEntryRemovedCount()
public int getEntryUpdatedCount()
public int getGroupFlushedCount()
public int getPatternFlushedCount()
public int getCacheFlushedCount()
public void cacheEntryAdded(CacheEntryEvent event)
cacheEntryAdded in interface CacheEntryEventListenerevent - The event triggered when a cache entry has been addedpublic void cacheEntryFlushed(CacheEntryEvent event)
cacheEntryFlushed in interface CacheEntryEventListenerevent - The event triggered when a cache entry has been flushedpublic void cacheEntryRemoved(CacheEntryEvent event)
cacheEntryRemoved in interface CacheEntryEventListenerevent - The event triggered when a cache entry has been removedpublic void cacheEntryUpdated(CacheEntryEvent event)
cacheEntryUpdated in interface CacheEntryEventListenerevent - The event triggered when a cache entry has been updatedpublic void cacheGroupFlushed(CacheGroupEvent event)
cacheGroupFlushed in interface CacheEntryEventListenerevent - The event triggered when a cache group has been flushedpublic void cachePatternFlushed(CachePatternEvent event)
cachePatternFlushed in interface CacheEntryEventListenerevent - The event triggered when a cache pattern has been flushedpublic void cacheFlushed(CachewideEvent event)
cacheFlushed in interface CacheEntryEventListenerevent - The event triggered when an entire cache is flushedpublic java.lang.String toString()
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||