com.ibm.websphere.cache
Interface PreInvalidationListener
-
- All Superinterfaces:
- java.util.EventListener
public interface PreInvalidationListener extends java.util.EventListener
Pre-invalidation listener interface used for selectively overriding invalidation events.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
CLEAR_ALL
Define cause of invalidation for CLEAR_ALLstatic int
DISK_GARBAGE_COLLECTOR
Define cause of invalidation for DISK_GARBAGE_COLLECTORstatic int
DISK_OVERFLOW
Define cause of invalidation for DISK_OVERFLOWstatic int
DISK_TIMEOUT
Define cause of invalidation for DISK_TIMEOUTstatic int
EXPLICIT
Define cause of invalidation for EXPLICITstatic int
INACTIVE
Define cause of invalidation for INACTIVEstatic 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)static int
REMOTE
Define source of invalidation for REMOTEstatic int
TIMEOUT
Define cause of invalidation for TIMEOUT
-
Method Summary
Methods Modifier and Type Method and Description boolean
shouldInvalidate(java.lang.Object id, int sourceOfInvalidation, int causeOfInvalidation)
Invoked prior to an invalidation event.
-
-
-
Field Detail
-
EXPLICIT
static final int EXPLICIT
Define cause of invalidation for EXPLICIT- See Also:
- Constant Field Values
-
LRU
static final int LRU
Define cause of invalidation for Least Recently Used(LRU)- See Also:
- Constant Field Values
-
TIMEOUT
static final int TIMEOUT
Define cause of invalidation for TIMEOUT- See Also:
- Constant Field Values
-
DISK_TIMEOUT
static final int DISK_TIMEOUT
Define cause of invalidation for DISK_TIMEOUT- See Also:
- Constant Field Values
-
CLEAR_ALL
static final int CLEAR_ALL
Define cause of invalidation for CLEAR_ALL- See Also:
- Constant Field Values
-
INACTIVE
static final int INACTIVE
Define cause of invalidation for INACTIVE- See Also:
- Constant Field Values
-
DISK_GARBAGE_COLLECTOR
static final int DISK_GARBAGE_COLLECTOR
Define cause of invalidation for DISK_GARBAGE_COLLECTOR- See Also:
- Constant Field Values
-
DISK_OVERFLOW
static final int DISK_OVERFLOW
Define cause of invalidation for DISK_OVERFLOW- See Also:
- Constant Field Values
-
LOCAL
static final int LOCAL
Define source of invalidation for LOCAL (cache in memory or disk)- See Also:
- Constant Field Values
-
REMOTE
static final int REMOTE
Define source of invalidation for REMOTE- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldInvalidate
boolean shouldInvalidate(java.lang.Object id, int sourceOfInvalidation, int causeOfInvalidation)
Invoked prior to an invalidation event. Returned boolean will determine whether invalidation will be processed or not.- Parameters:
id
- The cache idsourceOfInvalidation
- The source of the invalidation, defined in com.ibm.websphere.cache.InvalidationEventcauseOfInvalidation
- The cause of the invalidation, defined in com.ibm.websphere.cache.InvalidationEvent- Returns:
- boolean "true" means that the invalidation event should proceed as normal. "false" means that the invalidation event should be canceled.
-
-