Implementation of a CacheEntryEventListener. It broadcasts the flush events
across a cluster to other listening caches. Note that this listener cannot
be used in conjection with session caches.
version: $Revision: 254 $ author: Chris Miller
initialize(Cache cache, Config config) Called by the cache administrator class when a cache is instantiated.
Parameters: cache - the cache instance that this listener is attached to. Parameters: config - The cache's configuration details.
Event fired when an entry is removed from the cache. This broadcasts
the remove method to any listening nodes on the network, as long as
this event wasn't from a broadcast in the first place.
Handles incoming notification messages. This method should be called by the
underlying broadcasting implementation when a message is received from another
node in the cluster.
Parameters: message - The incoming cluster notification message object.
Called by the cache administrator class when a cache is instantiated.
Parameters: cache - the cache instance that this listener is attached to. Parameters: config - The cache's configuration details. This allows the event handlerto initialize itself based on the cache settings, and also to receive additionalsettings that were part of the cache configuration but that the cacheitself does not care about. If you are using cache.propertiesfor your configuration, simply add any additional properties that your eventhandler requires and they will be passed through in this parameter. throws: InitializationException - thrown when there was a problem initializing thelistener. The cache administrator will log this error and disable the listener.
Called when a cluster notification message is to be broadcast. Implementing
classes should use their underlying transport to broadcast the message across
the cluster.
Parameters: message - The notification message to broadcast.