Package com.alachisoft.ncache.client
Interface CacheDataModificationListener
-
- All Known Implementing Classes:
CacheDataModification
public interface CacheDataModificationListener
User needs to implement this interface in order to receive cache clear and data modification events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCacheCleared(java.lang.String cacheName)
Defines a listener method for notifying applications when cache is cleared.void
onCacheDataModified(java.lang.String key, CacheEventArg eventArgs)
Defines a listener method for notifying applications when an item is updated in the cache.
-
-
-
Method Detail
-
onCacheDataModified
void onCacheDataModified(java.lang.String key, CacheEventArg eventArgs)
Defines a listener method for notifying applications when an item is updated in the cache.- Parameters:
key
- The cache key used to reference the item.eventArgs
- The cache event arguments.
-
onCacheCleared
void onCacheCleared(java.lang.String cacheName)
Defines a listener method for notifying applications when cache is cleared.- Parameters:
cacheName
- The name of the cache that is cleared.
-
-