public class ChangeEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
EXISTING_VALUE_CHANGED
Defines the cause of change for type EXISTING_VALUE_CHANGED
|
static int |
EXPIRATION_TIMES_CHANGED
Defines the cause of change for type EXPIRATION_TIMES_CHANGED.
|
static int |
LOCAL
Define source of change for LOCAL (cache in memory or disk)
|
java.lang.String |
m_cacheName |
static int |
NEW_ENTRY_ADDED
Defines the cause of change for type NEW_ENTRY_ADDED
|
static int |
REMOTE
Defines the source of change for type REMOTE
|
Constructor and Description |
---|
ChangeEvent(java.lang.Object id,
java.lang.Object value,
int causeOfChange,
int sourceOfChange,
java.lang.String cacheName)
Create a new ChangeEvent from id, value, cause of change, source of change and cache name
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCacheName()
Gets the name of the cache
|
int |
getCauseOfChange()
Gets the cause of change when this event was generated.
|
java.lang.Object |
getId()
Gets the cache id that was changed.
|
int |
getSourceOfChange()
Gets the source of change when this event was generated.
|
long |
getTimeStamp()
Gets the timestamp of when this event was generated.
|
java.lang.Object |
getValue()
Gets new value.
|
public static final int EXISTING_VALUE_CHANGED
public static final int NEW_ENTRY_ADDED
public static final int EXPIRATION_TIMES_CHANGED
public static final int LOCAL
public static final int REMOTE
public java.lang.String m_cacheName
public ChangeEvent(java.lang.Object id, java.lang.Object value, int causeOfChange, int sourceOfChange, java.lang.String cacheName)
public java.lang.Object getId()
public java.lang.Object getValue()
public int getCauseOfChange()
public int getSourceOfChange()
public java.lang.String getCacheName()
public long getTimeStamp()