Search in sources :

Example 1 with ListenerWrapperEventFilter

use of com.hazelcast.spi.ListenerWrapperEventFilter in project hazelcast by hazelcast.

the class EventServiceSegment method pingNotifiableEventListener.

private void pingNotifiableEventListener(String topic, Registration registration, boolean register) {
    Object listener = registration.getListener();
    if (!(listener instanceof NotifiableEventListener)) {
        EventFilter filter = registration.getFilter();
        if (filter instanceof ListenerWrapperEventFilter) {
            listener = ((ListenerWrapperEventFilter) filter).getListener();
        }
    }
    pingNotifiableEventListenerInternal(listener, topic, registration, register);
    pingNotifiableEventListenerInternal(service, topic, registration, register);
}
Also used : ListenerWrapperEventFilter(com.hazelcast.spi.ListenerWrapperEventFilter) NotifiableEventListener(com.hazelcast.spi.NotifiableEventListener) EventFilter(com.hazelcast.spi.EventFilter) ListenerWrapperEventFilter(com.hazelcast.spi.ListenerWrapperEventFilter)

Aggregations

EventFilter (com.hazelcast.spi.EventFilter)1 ListenerWrapperEventFilter (com.hazelcast.spi.ListenerWrapperEventFilter)1 NotifiableEventListener (com.hazelcast.spi.NotifiableEventListener)1