Interface INotificationService
This interface contains properties and methods required for a Notification Service.
Assembly: Alachisoft.NCache.Client.dll
Syntax
public interface INotificationService
Events
CacheCleared
Event for notifying applications when the ICache is cleared.
Declaration
event CacheClearedCallback CacheCleared
Event Type
Type | Description |
---|---|
CacheClearedCallback | Defines a callback method for notifying applications when the ICache is cleared. |
Remarks
Since this handler is invoked every time the ICache is cleared, doing a lot of processing inside the handler might have an impact on the performance of the cache and cluster. It is therefore advisable to do minimal processing inside the handler.
CacheClientConnectivityChanged
Event for notifying the application about the status of cache client connectivity.
Declaration
event CacheClientConnectivityChangedCallback CacheClientConnectivityChanged
Event Type
Type | Description |
---|---|
CacheClientConnectivityChangedCallback | Defines a callback method for notifying the application about the status of cache client connectivity. |
Remarks
This handler is invoked when cache client connectivity is changed.
CacheStopped
Event for notifying applications when the ICache is stopped.
Declaration
event CacheStoppedCallback CacheStopped
Event Type
Type | Description |
---|---|
CacheStoppedCallback | Defines a callback method for notifying applications when the Alachisoft.NCache.Client.Cache stops. |
Remarks
This handler is invoked when a ICache is stopped.
MemberJoined
Event for notifying applications when a new node joins the cluster.
Declaration
event MemberJoinedCallback MemberJoined
Event Type
Type | Description |
---|---|
MemberJoinedCallback | Defines a callback method for notifying applications when a new node joins the cluster. |
Remarks
This handler is invoked every time a new node joins the cluster.
MemberLeft
Event for notifying applications when a node leaves the cluster.
Declaration
event MemberLeftCallback MemberLeft
Event Type
Type | Description |
---|---|
MemberLeftCallback | Defines a callback method for notifying applications when a node leaves the cluster. |
Remarks
This handler is invoked every time a node leaves the cluster.