![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IReplicatedMapTKey, TValueAddEntryListener Method (IEntryListenerTKey, TValue, TKey) |
Adds the specified entry listener for the specified key.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.1
Syntaxstring AddEntryListener(
IEntryListener<TKey, TValue> listener,
TKey key
)
Function AddEntryListener (
listener As IEntryListener(Of TKey, TValue),
key As TKey
) As String
String^ AddEntryListener(
IEntryListener<TKey, TValue>^ listener,
TKey key
)
abstract AddEntryListener :
listener : IEntryListener<'TKey, 'TValue> *
key : 'TKey -> string
Parameters
- listener
- Type: Hazelcast.CoreIEntryListenerTKey, TValue
entry listener - key
- Type: TKey
key to listen
Return Value
Type:
Stringreturns 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