hazelcast/hazelcast — pull request #2790 by sancar (2014-06-22 11:52:50+00:00)
Title: mapCleared is added to EntryListener

Notes to reviewers:
On multimap clear, mapCleared method will be called. Before we were firing event for each key as removed.
When evictAll/clearAll is called from nodes, event will be fired in that node after all operations in partition threads finished
When evictAll/clearAll is called from clients , event will be fired in the remote node that request send in reduce phase meaning after all operations in partition threads returned.
Not sure what to do in webfilter leaved as todo.
Not sure what to do in beans for statistics leaved as todo.
Tests for multimap and map listeners related to evictAll and clearAll is added for both client and node. And even tested what happens if node is firing the event and client was the one listening.
Note for the client team(I will also add as issue to client issue lists ), PortableEntryEvent is changed, and should be changed accordingly in C++ and C# clients also.
fixes #2789