Package com.alachisoft.ncache.client
Class CacheEventArg
- java.lang.Object
-
- com.alachisoft.ncache.client.EventArg
-
- com.alachisoft.ncache.client.CacheEventArg
-
public class CacheEventArg extends EventArg
This object is received when an event is raised and listenerCacheDataModificationListeneris executed. CacheEventArg contains the necessary information to identify the event and perform necessary actions, accordingly. It inheritsEventArg. This class is consistent for both selective and general events
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.alachisoft.ncache.client.internal.caching.CacheItemRemovedReasongetCacheItemRemovedReason()Only applicable for EventType.ItemRemove.CacheEventDescriptorgetDescriptor()Only applicable for general events otherwise, it will be null.-
Methods inherited from class com.alachisoft.ncache.client.EventArg
getCacheName, getEventType, getItem, getOldItem
-
-
-
-
Method Detail
-
getDescriptor
public final CacheEventDescriptor getDescriptor()
Only applicable for general events otherwise, it will be null.- Returns:
- The descriptor associated with the cache event args.
-
getCacheItemRemovedReason
public final com.alachisoft.ncache.client.internal.caching.CacheItemRemovedReason getCacheItemRemovedReason()
Only applicable for EventType.ItemRemove. Otherwise, the default value is DependencyChanged.- Returns:
- The CacheItemRemovedReason enum.
-
-