|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.ibm.websphere.cache.ChangeEvent
public class ChangeEvent
An event object that provides information about the source of cache-related events. ChangeEvent objects are generated when cache entries are changed in the cache. The ChangeEvent object contains six pieces of information:
Field Summary | |
---|---|
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 |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ChangeEvent(java.lang.Object id, java.lang.Object value, int causeOfChange, int sourceOfChange, java.lang.String cacheName)
Method Detail |
---|
public java.lang.Object getId()
public java.lang.Object getValue()
public int getCauseOfChange()
public int getSourceOfChange()
public java.lang.String getCacheName()
public long getTimeStamp()
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |