Client Activity Event Notifications
NCache provides users with the ability to enable Client Activity Events. Using these events, each client that connects to a clustered cache can subscribe to be notified about the connectivity of other clients. You can also specify the Retention Period, which is the time after which a disconnected client is actually considered disconnected, and its disconnection event is fired. If a client reconnects within the retention period, its disconnection event is not fired. This is to compensate for the accidental disconnections occurring due to buggy networks since the NCache client automatically reconnects in such networks without disrupting the client operations. The events must be enabled before use.
Note
This does not apply to the clients that manually dispose and reinitialize themselves.
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
on Windows and Linux.In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to configure.
Against the cache name, click on View Details.
Important
Ensure the cache stops before proceeding.
This opens up the detailed configuration page for the cache. Go to the Advanced Settings tab and click on Options in the left bar.
Under Client Activity Notifications, select the Enable Client Activity Notifications checkbox.
Configure the Retention Period to define the time after which a disconnected client is considered disconnected.
- Click on Save Changes present at the bottom of the page to apply this configuration to the cache.
See Also
General Cache Settings
Cache Cluster Settings
Error Logging
Eviction Policy