public class DataStructureEventArg
extends java.lang.Object
DataStructureDataChangeListener.onDataStructureChanged(java.lang.String, com.alachisoft.ncache.runtime.events.DataStructureEventArg)
is executed. This class
contains necessary information to identify the event and perform necessary
actions accordingly.Constructor | Description |
---|---|
DataStructureEventArg(java.lang.String cacheName,
EventType eventType,
DistributedDataStructure dataType,
java.lang.Object dataTypeItem,
java.lang.Object oldDataTypeItem) |
Constructor that initializes all the properties of this class.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCacheName() |
Gets the name of cache the collection event is registered against.
|
java.lang.Object |
getCollectionItem() |
Gets current the collection item.
|
DistributedDataStructure |
getCollectionType() |
The type of collection, pertaining to
DistributedDataStructure ,returned on fire of collection event. |
EventType |
getEventType() |
Gets the type of the event.
|
java.lang.Object |
getOldCollectionItem() |
Gets the previous value of the collection item.
|
public DataStructureEventArg(java.lang.String cacheName, EventType eventType, DistributedDataStructure dataType, java.lang.Object dataTypeItem, java.lang.Object oldDataTypeItem)
cacheName
- Name of cache the collection event is to be registered against.eventType
- Event types the event is to be registered against.dataType
- The type of collection, pertaining to DistributedDataStructureType
,
to be returned on fire of collection event.dataTypeItem
- Value of collection item if the respective filter is set.oldDataTypeItem
- Old value of collection item if the respective filter is set.public final java.lang.String getCacheName()
public final java.lang.Object getCollectionItem()
public final java.lang.Object getOldCollectionItem()
public final EventType getEventType()
public final DistributedDataStructure getCollectionType()
DistributedDataStructure
,returned on fire of collection event.