Class CacheDataModification
- java.lang.Object
-
- com.alachisoft.ncache.client.util.CacheDataModification
-
- All Implemented Interfaces:
CacheDataModificationListener
public class CacheDataModification extends java.lang.Object implements CacheDataModificationListener
-
-
Constructor Summary
Constructors Constructor Description CacheDataModification(CacheDataModificationListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCacheCleared(java.lang.String cacheName)Defines a listener method for notifying applications when cache is cleared.voidonCacheDataModified(java.lang.String key, CacheEventArg eventArgs)Defines a listener method for notifying applications when an item is updated in the cache.
-
-
-
Constructor Detail
-
CacheDataModification
public CacheDataModification(CacheDataModificationListener listener)
-
-
Method Detail
-
onCacheDataModified
public void onCacheDataModified(java.lang.String key, CacheEventArg eventArgs)Description copied from interface:CacheDataModificationListenerDefines a listener method for notifying applications when an item is updated in the cache.- Specified by:
onCacheDataModifiedin interfaceCacheDataModificationListener- Parameters:
key- The cache key used to reference the item.eventArgs- The cache event arguments.
-
onCacheCleared
public void onCacheCleared(java.lang.String cacheName)
Description copied from interface:CacheDataModificationListenerDefines a listener method for notifying applications when cache is cleared.- Specified by:
onCacheClearedin interfaceCacheDataModificationListener- Parameters:
cacheName- The name of the cache that is cleared.
-
-