-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Added load event listening capability to client side added listener #13380
Added load event listening capability to client side added listener #13380
Conversation
cdce576
to
dbabd76
Compare
@ahmetmircik |
@ahmetmircik one point though, we got |
run-lab-run |
e51c470
to
bab9c99
Compare
run-lab-run |
2 similar comments
run-lab-run |
run-lab-run |
bab9c99
to
48d01eb
Compare
run-lab-run |
public void ensure_map_listener_adapter_implements_listeners_for_all_entry_event_types_except_invalidation() { | ||
MapListenerAdapter mapListenerAdapterInstance = new MapListenerAdapter(); | ||
Map<EntryEventType, ConstructorFunction<MapListener, ListenerAdapter>> constructors = getConstructors(); | ||
for (Map.Entry<EntryEventType, ConstructorFunction<MapListener, ListenerAdapter>> entry : constructors.entrySet()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we should iterate over all EntryEventType.values()
to make sure a constructor exists for each one of them (except INVALIDATION
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If constructor does not return null, this means the listener object (MapListenerAdapter
in the test) implements the required interface to listen the event. For the test we expect MapListenerAdapter
to implement all interfaces except one for INVALIDATION. This test is needed to not to forget addition of new listener interfaces to the adapter.
48d01eb
to
c1d6c1a
Compare
c1d6c1a
to
d9c12a6
Compare
@ahmetmircik many thanks, after latest updates we got expected event count. 👍 |
After merge, java client will also listen loaded event via EntryLoadedListener. This capability was missing.
Thanks @lazerion for finding this.
client part of #1542