|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
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.InvalidationEvent
public class InvalidationEvent
An event object that provides information about the source of cache-related event. InvalidationEvent objects are generated when cache entry is removed from the cache based on cache id, dependency id or template. The InvalidationEvent object contains six kinds of information:
Field Summary | |
---|---|
static int |
CLEAR_ALL
Define cause of invalidation for CLEAR_ALL |
static int |
DISK_GARBAGE_COLLECTOR
Define cause of invalidation for DISK_GARBAGE_COLLECTOR |
static int |
DISK_OVERFLOW
Define cause of invalidation for DISK_OVERFLOW |
static int |
DISK_TIMEOUT
Define cause of invalidation for DISK_TIMEOUT |
static int |
EXPLICIT
Define cause of invalidation for EXPLICIT |
static int |
INACTIVE
Define cause of invalidation for INACTIVE |
static int |
LOCAL
Define source of invalidation for LOCAL (cache in memory or disk) |
static int |
LRU
Define cause of invalidation for Least Recently Used(LRU) |
java.lang.String |
m_cacheName
|
static int |
REMOTE
Define source of invalidation for REMOTE |
static int |
TIMEOUT
Define cause of invalidation for TIMEOUT |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
InvalidationEvent(java.lang.Object id,
java.lang.Object value,
int causeOfInvalidation,
int sourceOfInvalidation,
java.lang.String cacheName)
Create a new InvalidationEvent from id, cause of invalidation and source of invalidation |
Method Summary | |
---|---|
java.lang.String |
getCacheName()
Gets the name of the cache being used to invalidate |
int |
getCauseOfInvalidation()
Gets the cause of invalidation when this event was generated. |
java.lang.Object |
getId()
Gets the cache id that was invalidated. |
int |
getSourceOfInvalidation()
Gets the source of invalidation when this event was generated. |
long |
getTimeStamp()
Gets the timestamp of when this event was generated. |
java.lang.Object |
getValue()
Gets the cache value that was invalidated. |
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 EXPLICIT
public static final int LRU
public static final int TIMEOUT
public static final int DISK_TIMEOUT
public static final int CLEAR_ALL
public static final int INACTIVE
public static final int DISK_GARBAGE_COLLECTOR
public static final int DISK_OVERFLOW
public static final int LOCAL
public static final int REMOTE
public java.lang.String m_cacheName
Constructor Detail |
---|
public InvalidationEvent(java.lang.Object id, java.lang.Object value, int causeOfInvalidation, int sourceOfInvalidation, java.lang.String cacheName)
Method Detail |
---|
public java.lang.Object getId()
public java.lang.Object getValue()
public int getCauseOfInvalidation()
public int getSourceOfInvalidation()
public java.lang.String getCacheName()
public long getTimeStamp()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |