Durable Client Messaging
You can configure the redundancy level for client queues that are stored on cache servers. This ensures that the client will not lose messages if it loses the connection to its primary server.
Durable messaging allows a disconnected client application to recover its subscribed data when it reconnects to the cache server because the server continues to queue messages for which the client has registered interest.
The messaging queues used for durable messaging are the same regular messaging queues used for basic server-to-client messaging, with additional requirements.
After a durable client connects and initializes its cache, regions, cache listeners, and any interest registration, it invokes
readyForEventsto indicate to the servers that the client is ready to receive any messages accumulated for it.
When a durable client closes its cache and disconnects, it tells the servers whether to maintain its queues.
This section discusses the high-level operation of a durable client through initial startup, disconnection, and reconnection.
A cache listener for durable clients requires all callback methods to behave properly when stored events are replayed. A cache listener has a callback method,
afterRegionLive, specifically for durable clients aspects.