com.ibm.websphere.cache

Interface PreInvalidationListener

All Superinterfaces:
java.util.EventListener

  1. public interface PreInvalidationListener
  2. extends java.util.EventListener
Pre-invalidation listener interface used for selectively overriding invalidation events.

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
CLEAR_ALL
Define cause of invalidation for CLEAR_ALL
  1. static
  2. int
DISK_GARBAGE_COLLECTOR
Define cause of invalidation for DISK_GARBAGE_COLLECTOR
  1. static
  2. int
DISK_OVERFLOW
Define cause of invalidation for DISK_OVERFLOW
  1. static
  2. int
DISK_TIMEOUT
Define cause of invalidation for DISK_TIMEOUT
  1. static
  2. int
EXPLICIT
Define cause of invalidation for EXPLICIT
  1. static
  2. int
INACTIVE
Define cause of invalidation for INACTIVE
  1. static
  2. int
LOCAL
Define source of invalidation for LOCAL (cache in memory or disk)
  1. static
  2. int
LRU
Define cause of invalidation for Least Recently Used(LRU)
  1. static
  2. int
REMOTE
Define source of invalidation for REMOTE
  1. static
  2. int
TIMEOUT
Define cause of invalidation for TIMEOUT

Method Summary

Modifier and Type Method and Description
  1. boolean
shouldInvalidate(java.lang.Object id,int sourceOfInvalidation,int causeOfInvalidation)
Invoked prior to an invalidation event.

Field Detail

EXPLICIT

  1. static final int EXPLICIT
Define cause of invalidation for EXPLICIT
See Also:

LRU

  1. static final int LRU
Define cause of invalidation for Least Recently Used(LRU)
See Also:

TIMEOUT

  1. static final int TIMEOUT
Define cause of invalidation for TIMEOUT
See Also:

DISK_TIMEOUT

  1. static final int DISK_TIMEOUT
Define cause of invalidation for DISK_TIMEOUT
See Also:

CLEAR_ALL

  1. static final int CLEAR_ALL
Define cause of invalidation for CLEAR_ALL
See Also:

INACTIVE

  1. static final int INACTIVE
Define cause of invalidation for INACTIVE
See Also:

DISK_GARBAGE_COLLECTOR

  1. static final int DISK_GARBAGE_COLLECTOR
Define cause of invalidation for DISK_GARBAGE_COLLECTOR
See Also:

DISK_OVERFLOW

  1. static final int DISK_OVERFLOW
Define cause of invalidation for DISK_OVERFLOW
See Also:

LOCAL

  1. static final int LOCAL
Define source of invalidation for LOCAL (cache in memory or disk)
See Also:

REMOTE

  1. static final int REMOTE
Define source of invalidation for REMOTE
See Also:

Method Detail

shouldInvalidate

  1. boolean shouldInvalidate(java.lang.Object id,
  2. int sourceOfInvalidation,
  3. 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.