![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IMapTKey, TValueAddEntryListener Method (IEntryListenerTKey, TValue, TKey, Boolean) |
Note: This API is now obsolete.
Adds the specified entry listener for the specified key.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.1
Syntax[ObsoleteAttribute]
string AddEntryListener(
IEntryListener<TKey, TValue> listener,
TKey key,
bool includeValue
)
<ObsoleteAttribute>
Function AddEntryListener (
listener As IEntryListener(Of TKey, TValue),
key As TKey,
includeValue As Boolean
) As String
[ObsoleteAttribute]
String^ AddEntryListener(
IEntryListener<TKey, TValue>^ listener,
TKey key,
bool includeValue
)
[<ObsoleteAttribute>]
abstract AddEntryListener :
listener : IEntryListener<'TKey, 'TValue> *
key : 'TKey *
includeValue : bool -> string
Parameters
- listener
- Type: Hazelcast.CoreIEntryListenerTKey, TValue
entry listener - key
- Type: TKey
key to listen - includeValue
- Type: SystemBoolean
true if EntryEvent should
contain the value.
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
hashCode and
equals of binary form of
the
key, not the actual implementations of
hashCode and
equals
defined in
key's class.
See Also