public class QueryCacheNaturalFilteringStrategy extends AbstractFilteringStrategy
hazelcast.map.entry.filtering.natural.event.types
is set
to true
. The complete decision matrix for event types published with this filtering strategy.
Old value | New value | Published event type |
Match | Mismatch | REMOVED |
Match | Match | UPDATED |
Mismatch | Mismatch | NO MATCH (no event is triggered) |
Mismatch | Match | ADDED |
mapServiceContext, serializationService
FILTER_DOES_NOT_MATCH
Constructor and Description |
---|
QueryCacheNaturalFilteringStrategy(InternalSerializationService serializationService,
MapServiceContext mapServiceContext) |
Modifier and Type | Method and Description |
---|---|
int |
doFilter(EventFilter filter,
Data dataKey,
Object oldValue,
Object dataValue,
EntryEventType eventType,
String mapNameOrNull)
Main entry point for filtering events according to given filter.
|
EntryEventDataCache |
getEntryEventDataCache() |
String |
toString() |
evaluateQueryEventFilter, getThisNodesAddress, processEntryEventFilter
public QueryCacheNaturalFilteringStrategy(InternalSerializationService serializationService, MapServiceContext mapServiceContext)
public int doFilter(EventFilter filter, Data dataKey, Object oldValue, Object dataValue, EntryEventType eventType, String mapNameOrNull)
FilteringStrategy
filter
- the event filterdataKey
- the event entry keyoldValue
- 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)FilteringStrategy.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.public EntryEventDataCache getEntryEventDataCache()
EntryEventDataCache
implementation to be used with this filtering strategyCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.