Implementing Tanzu GemFire Event Handlers
You can specify event handlers for region and region entry operations and for administrative events.
Depending on your installation and configuration, cache events can come from local operations, peers, servers, and remote sites. Event handlers register their interest in one or more events and are notified when the events occur.
AsyncEventListenerasynchronously processes batches of events after they have been applied to a region. You can use an
AsyncEventListenerimplementation as a write-behind cache event handler to synchronize region updates with a database.
Event handlers are synchronous. If you need to change the cache or perform any other distributed operation from event handler callbacks, be careful to avoid activities that might block and affect your overall system performance.
Some examples of cache event handlers.