public class InternalMapListenerAdapter extends Object implements ListenerAdapter<IMapEvent>
MapListener
sub-interfaces into a ListenerAdapter
.
Main purpose of this adapter is to avoid lots of instanceOf checks when firing events to check whether or not
a corresponding MapListener
sub-interface for a specific EntryEventType
is extended.
And also to provide an abstraction over all MapListener
sub-interfaces to make a smooth usage when passing
fired events to listeners e.g. only calling ListenerAdapter.onEvent(T)
is sufficient to fire any event.Modifier and Type | Method and Description |
---|---|
ListenerAdapter[] |
getListenerAdapters() |
void |
onEvent(IMapEvent event)
Handle event.
|
public void onEvent(IMapEvent event)
ListenerAdapter
onEvent
in interface ListenerAdapter<IMapEvent>
event
- type of event.public ListenerAdapter[] getListenerAdapters()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.