BigMemory Go 4.3.4 | Product Documentation | BigMemory Go Developer Guide | Cache Event Listeners | About Cache Event Listeners
About Cache Event Listeners
Cache listeners allow implementers to register callback methods that will be executed when a cache event occurs. Cache listeners implement the CacheEventListener interface. The events include:
*An Element has been put
*An Element has been updated. Updated means that an Element exists in the Cache with the same key as the Element being put.
*An Element has been removed
*An Element expires, either because timeToLive or timeToIdle have been reached.
Callbacks to these methods are synchronous and unsynchronized.
It is the responsibility of the implementer to safely handle the potential performance and thread safety issues depending on what their listener is doing.
Even with added thread safety, ABA ordering problems may be observed.
Furthermore in clustered/distributed deployments not all events will be seen by all nodes. In fact, occasionally, there may be events that are not seen by any node.
Listeners are NOT guaranteed to be notified of events in the order in which they occurred. Elements can be put or removed from a Cache without notifying listeners by using the putQuiet() and removeQuiet() methods.

Copyright © 2010 - 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release