IReplicatedMapTKey, TValueAddEntryListener Method (IEntryListenerTKey, TValue, TKey)Hazelcast .Net Client Class Library
Adds the specified entry listener for the specified key.

Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.1
Syntax

string AddEntryListener(
	IEntryListener<TKey, TValue> listener,
	TKey key
)

Parameters

listener
Type: Hazelcast.CoreIEntryListenerTKey, TValue
entry listener
key
Type: TKey
key to listen

Return Value

Type: String
returns registration id
Remarks

Adds the specified entry listener for the specified key. The listener will get notified for all add/remove/update/evict events of the specified key only.

Warning:

This method uses GetHashCode and Equals of binary form of the key, not the actual implementations of GetHashCode and Equals defined in key's class.
See Also

Reference