public interface FilteringStrategy
Modifier and Type | Field and Description |
---|---|
static int |
FILTER_DOES_NOT_MATCH
Used as return value from
doFilter(EventFilter, Data, Object, Object, EntryEventType, String)
to indicate that an event registration's filter does not match. |
Modifier and Type | Method and Description |
---|---|
int |
doFilter(EventFilter filter,
Data dataKey,
Object dataOldValue,
Object dataValue,
EntryEventType eventType,
String mapNameOrNull)
Main entry point for filtering events according to given filter.
|
EntryEventDataCache |
getEntryEventDataCache() |
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 dataOldValue, Object dataValue, EntryEventType eventType, String mapNameOrNull)
filter
- the event filterdataKey
- the event entry keydataOldValue
- the old value of the event entrydataValue
- the new value of the event entryeventType
- the event typemapNameOrNull
- the map name. May be null if this is not a map event (e.g. cache event)FILTER_DOES_NOT_MATCH
if 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.EntryEventDataCache getEntryEventDataCache()
EntryEventDataCache
implementation to be used with this filtering strategyCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.