public class CacheEventLogger extends java.lang.Object implements CacheEventListener
CacheEventListener
and logs all the events.In the adapter configuration file this class is aliased as cache-event-logger which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
CacheEventLogger() |
Modifier and Type | Method and Description |
---|---|
void |
itemEvicted(java.lang.String key,
java.lang.Object value)
Notification that the provided key / value was evicted from the cache
|
void |
itemExpired(java.lang.String key,
java.lang.Object value)
Notification that the provided key / value has expired from the cache
|
void |
itemPut(java.lang.String key,
java.lang.Object value)
Notification that the provided key / value was put into the cache
|
void |
itemRemoved(java.lang.String key,
java.lang.Object value)
Notification that the provided key / value was removed from the cache
|
void |
itemUpdated(java.lang.String key,
java.lang.Object value)
Notification that the provided key / value was updated in the cache
|
public void itemEvicted(java.lang.String key, java.lang.Object value)
CacheEventListener
itemEvicted
in interface CacheEventListener
public void itemExpired(java.lang.String key, java.lang.Object value)
CacheEventListener
itemExpired
in interface CacheEventListener
public void itemPut(java.lang.String key, java.lang.Object value)
CacheEventListener
itemPut
in interface CacheEventListener
public void itemRemoved(java.lang.String key, java.lang.Object value)
CacheEventListener
itemRemoved
in interface CacheEventListener
public void itemUpdated(java.lang.String key, java.lang.Object value)
CacheEventListener
itemUpdated
in interface CacheEventListener