Package com.ibm.websphere.cache
Interface PreInvalidationListener
-
- All Superinterfaces:
java.util.EventListener
public interface PreInvalidationListener extends java.util.EventListenerPre-invalidation listener interface used for selectively overriding invalidation events.
-
-
Field Summary
Fields Modifier and Type Field Description static intCLEAR_ALLDefine cause of invalidation for CLEAR_ALLstatic intDISK_GARBAGE_COLLECTORDefine cause of invalidation for DISK_GARBAGE_COLLECTORstatic intDISK_OVERFLOWDefine cause of invalidation for DISK_OVERFLOWstatic intDISK_TIMEOUTDefine cause of invalidation for DISK_TIMEOUTstatic intEXPLICITDefine cause of invalidation for EXPLICITstatic intINACTIVEDefine cause of invalidation for INACTIVEstatic intLOCALDefine source of invalidation for LOCAL (cache in memory or disk)static intLRUDefine cause of invalidation for Least Recently Used(LRU)static intREMOTEDefine source of invalidation for REMOTEstatic intTIMEOUTDefine cause of invalidation for TIMEOUT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanshouldInvalidate(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.
-
-