Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents sending of not requested events to a MapListener #6349

Merged

Conversation

Projects
None yet
3 participants
@ahmetmircik
Copy link
Member

commented Oct 2, 2015

Filters events according the implemented MapListener sub-interfaces.

Specifically, for example, if a listener is registered via an implementation like this :

 public class MyMapListener implements EntryAddedListener, EntryRemovedListener {
  ...
  }

That listener will only be notified for EntryEventType#ADDED and EntryEventType#REMOVED events.
Other events, like EntryEventType#EVICTED or EntryEventType#EXPIRED, will not be sent over wire.
This may help to reduce load on eventing system and network.

@ahmetmircik ahmetmircik added this to the 3.6 milestone Oct 2, 2015

@ahmetmircik ahmetmircik force-pushed the ahmetmircik:enhancement/3.6/sentOnlyRequestedEvents branch 2 times, most recently from 6f68a0c to aec15e5 Oct 2, 2015

@ahmetmircik ahmetmircik force-pushed the ahmetmircik:enhancement/3.6/sentOnlyRequestedEvents branch from aec15e5 to f50d57c Oct 2, 2015

@mdogan

This comment has been minimized.

Copy link
Member

commented Oct 2, 2015

looks good to me

@eminn

This comment has been minimized.

Copy link
Collaborator

commented Oct 5, 2015

👍

eminn added a commit that referenced this pull request Oct 5, 2015

Merge pull request #6349 from ahmetmircik/enhancement/3.6/sentOnlyReq…
…uestedEvents

Prevents sending of not requested events to a MapListener

@eminn eminn merged commit 1b14e02 into hazelcast:master Oct 5, 2015

1 check passed

default Build finished. No test results found.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.