public class InvalidationEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
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
|
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public InvalidationEvent(java.lang.Object id, java.lang.Object value, int causeOfInvalidation, int sourceOfInvalidation, java.lang.String cacheName)
public java.lang.Object getId()
public java.lang.Object getValue()
public int getCauseOfInvalidation()
public int getSourceOfInvalidation()
public java.lang.String getCacheName()
public long getTimeStamp()