![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IMapTKey, TValueAddEntryListener Method (MapListener, IPredicate, Boolean) |
Adds a
MapListener for this map.To receive an event, you should implement a corresponding
MapListener sub-interface for that event.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.1
Syntaxstring AddEntryListener(
MapListener listener,
IPredicate predicate,
bool includeValue
)
Function AddEntryListener (
listener As MapListener,
predicate As IPredicate,
includeValue As Boolean
) As String
String^ AddEntryListener(
MapListener^ listener,
IPredicate^ predicate,
bool includeValue
)
abstract AddEntryListener :
listener : MapListener *
predicate : IPredicate *
includeValue : bool -> string
Parameters
- listener
- Type: Hazelcast.CoreMapListener
MapListener for this map - predicate
- Type: Hazelcast.CoreIPredicate
predicate for filtering entries - includeValue
- Type: SystemBoolean
true if EntryEvent should contain the value.
Return Value
Type:
Stringa registration Id which is used as a key to remove the listener.
Exceptions
Remarks
Adds a continuous
MapListener for this map. Listener will get notified
for registered map events filtered by given predicate.
See Also