Hazelcast entry listenerm questions

31 views
Skip to first unread message

mostafa mahmoud

unread,
Sep 8, 2015, 7:35:21 AM9/8/15
to Hazelcast
hi,
 i have two questions regarding the hazel cast entry listener :-
 1 -  in case of inserting a new entry within a transaction to hazelcast map - which already has a listener-  does the listener will be fired once the insertion is occurred or after committing the transaction ?
 2 -  in case of i register a listener that listens on local items IMap.addLocalEntryListener(EntryListener listener);   how can i include the value of the changed item? i.e  IMap.addEntryListener(EntryListener listener,true);

Ahmet Mircik

unread,
Sep 9, 2015, 3:33:57 AM9/9/15
to haze...@googlegroups.com
Hi,

On Tue, Sep 8, 2015 at 2:35 PM, mostafa mahmoud <mosta...@gmail.com> wrote:
hi,
 i have two questions regarding the hazel cast entry listener :-
 1 -  in case of inserting a new entry within a transaction to hazelcast map - which already has a listener-  does the listener will be fired once the insertion is occurred or after committing the transaction ?

Listeners will be notified after commit. 

 2 -  in case of i register a listener that listens on local items IMap.addLocalEntryListener(EntryListener listener);   how can i include the value of the changed item? i.e  IMap.addEntryListener(EntryListener listener,true);

By default, local entry-listeners include value.

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/03cd3504-5a93-43b2-a5ce-12fbbe94f9e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages