blackboard.platform.monitor.cache
Interface CacheElementListener

All Superinterfaces:
CacheMonitorListener, java.util.EventListener, MonitorListener

public interface CacheElementListener
extends CacheMonitorListener

The CacheElementListener class is used to observe cache events related to specific elements in the specific cache that a monitor is associated with.

Be aware that turning on cache element monitoring (by registering a cache element listener) could lead to a very high number of events being sent out, depending on the load on the system.

Since:
Bb 9.1

Method Summary
 void elementAdded(CacheElementEvent event)
          This method is called whenever an element is added to the cache.
 void elementEvicted(CacheElementEvent event)
          This method is called whenever an element is evicted from the cache.
 void elementExpired(CacheElementEvent event)
          This method is called whenever an element is removed from the cache due to its having expired.
 void elementRemoved(CacheElementEvent event)
          This method is called whenever an element is removed from the cache.
 void elementUpdated(CacheElementEvent event)
          This method is called whenever an element in the cache is being updated.
 

Method Detail

elementAdded

void elementAdded(CacheElementEvent event)
This method is called whenever an element is added to the cache.

Parameters:
event - The associated event

elementEvicted

void elementEvicted(CacheElementEvent event)
This method is called whenever an element is evicted from the cache.

Parameters:
event - The associated event

elementExpired

void elementExpired(CacheElementEvent event)
This method is called whenever an element is removed from the cache due to its having expired.

Parameters:
event - The associated event

elementRemoved

void elementRemoved(CacheElementEvent event)
This method is called whenever an element is removed from the cache.

Parameters:
event - The associated event

elementUpdated

void elementUpdated(CacheElementEvent event)
This method is called whenever an element in the cache is being updated.

Parameters:
event - The associated event


Copyright 2011 Blackboard, Inc. All Rights Reserved.