Adds a MapListener for the specified key, you should implement a corresponding
MapListener sub-interface for that event.
Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.1
Syntax
string AddEntryListener( MapListener listener, IPredicate predicate, TKey key, bool includeValue )
Parameters
- listener
- Type: Hazelcast.CoreMapListener
MapListener for this map - predicate
- Type: Hazelcast.CoreIPredicate
predicate for filtering entries - key
- Type: TKey
key to listen - 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
Exception | Condition |
---|---|
ArgumentNullException | the specified listener, predicate or the key is null. |
Remarks
See Also