This topic links to documentation about implementing VMware Tanzu GemFire event handlers.
You can specify event handlers for region and region entry operations and for administrative events.
Implementing Cache Event Handlers
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.
Implementing an AsyncEventListener for Write-Behind Cache Event Handling
An AsyncEventListener
asynchronously processes batches of events after they have been applied to a region. You can use an AsyncEventListener
implementation as a write-behind cache event handler to synchronize region updates with a database.
How to Safely Modify the Cache from an Event Handler Callback
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.