public interface FilteringStrategy
|Modifier and Type||Field and Description|
Used as return value from
|Modifier and Type||Method and Description|
Main entry point for filtering events according to given filter.
static final int FILTER_DOES_NOT_MATCH
doFilter(EventFilter, Data, Object, Object, EntryEventType, String)to indicate that an event registration's filter does not match.
int doFilter(EventFilter filter, Data dataKey, Object oldValue, Object dataValue, EntryEventType eventType, String mapNameOrNull)
filter- the event filter
dataKey- the event entry key
oldValue- the old value of the event entry
dataValue- the new value of the event entry
eventType- the event type
mapNameOrNull- the map name. May be null if this is not a map event (e.g. cache event)
FILTER_DOES_NOT_MATCHif the event does not match the filter, otherwise the integer event type of the event to be published. This allows a filtering strategy to alter the type of event that is actually published, depending on the attributes of the individual event registration.
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.