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 SummaryFields 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 SummaryAll 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- 
EXPLICITstatic final int EXPLICIT Define cause of invalidation for EXPLICIT- See Also:
- Constant Field Values
 
 - 
LRUstatic final int LRU Define cause of invalidation for Least Recently Used(LRU)- See Also:
- Constant Field Values
 
 - 
TIMEOUTstatic final int TIMEOUT Define cause of invalidation for TIMEOUT- See Also:
- Constant Field Values
 
 - 
DISK_TIMEOUTstatic final int DISK_TIMEOUT Define cause of invalidation for DISK_TIMEOUT- See Also:
- Constant Field Values
 
 - 
CLEAR_ALLstatic final int CLEAR_ALL Define cause of invalidation for CLEAR_ALL- See Also:
- Constant Field Values
 
 - 
INACTIVEstatic final int INACTIVE Define cause of invalidation for INACTIVE- See Also:
- Constant Field Values
 
 - 
DISK_GARBAGE_COLLECTORstatic final int DISK_GARBAGE_COLLECTOR Define cause of invalidation for DISK_GARBAGE_COLLECTOR- See Also:
- Constant Field Values
 
 - 
DISK_OVERFLOWstatic final int DISK_OVERFLOW Define cause of invalidation for DISK_OVERFLOW- See Also:
- Constant Field Values
 
 - 
LOCALstatic final int LOCAL Define source of invalidation for LOCAL (cache in memory or disk)- See Also:
- Constant Field Values
 
 - 
REMOTEstatic final int REMOTE Define source of invalidation for REMOTE- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
shouldInvalidateboolean 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 id
- sourceOfInvalidation- The source of the invalidation, defined in com.ibm.websphere.cache.InvalidationEvent
- causeOfInvalidation- 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.
 
 
- 
 
-