IBM WebSphere Application ServerTM
Release 7

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
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)
static int REMOTE
          Define source of invalidation for REMOTE
static int TIMEOUT
          Define cause of invalidation for TIMEOUT
 
Method Summary
 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 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.

IBM WebSphere Application ServerTM
Release 7