Configuring Cache Activity Events
NCache provides the feature of enabling Client Activity Events. Using these events, each client that is connected to a clustered cache can subscribe to be notified about the connect/disconnect events of other clients. Each client can also specify a process level custom identifier which will be returned to the subscriber in case the client which specified it connects to or disconnects from a clustered cache.
The events must be enabled before use.
Click on your desired clustered cache in the Cache Explorer (For creating or adding existing caches, refer to Configure Caches).
Important
Make sure that the cache is not running.
Cache Properties open on the adjacent panel. Navigate to the Options tab and check the Enable Client Activity Notifications check box.
The Retention Period combo box gets enabled. This value, in seconds, is the time after which a disconnected client is actually considered disconnected, and its disconnect event is fired. If a client re-connects within the retention period, its disconnect event is not fired. This is to compensate for the accidental disconnects occurring due to buggy networks, since the NCache client automatically reconnects in such networks without disrupting the client operations. Note that this does not apply to the clients that manually dispose and reinitialize themselves.
Specify the desired value for Retention Period and start the cache. These settings are only available for clustered caches.