|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.oscache.extra.CacheEntryEventListenerImpl
public class 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.
| Field Summary | |
|---|---|
private int |
cacheFlushedCount
Counter for the cache flushes |
private int |
entryAddedCount
Counter for the added entries |
private int |
entryFlushedCount
Counter for the flushed entries |
private int |
entryRemovedCount
Counter for the removed entries |
private int |
entryUpdatedCount
Counter for the updated entries |
private int |
groupFlushedCount
Counter for the flushed groups |
private int |
patternFlushedCount
Counter for the pattern flushes |
| 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 |
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 |
| Field Detail |
|---|
private int cacheFlushedCount
private int entryAddedCount
private int entryFlushedCount
private int entryRemovedCount
private int entryUpdatedCount
private int groupFlushedCount
private int patternFlushedCount
| 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 String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||