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(SerializationService serializationService,
MapServiceContext mapServiceContext) |
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() |
String |
toString() |
evaluateQueryEventFilter, getThisNodesAddress, processEntryEventFilter
public QueryCacheNaturalFilteringStrategy(SerializationService serializationService, MapServiceContext mapServiceContext)
public int doFilter(EventFilter filter, Data dataKey, Object dataOldValue, Object dataValue, EntryEventType eventType, String mapNameOrNull)
FilteringStrategy
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 © 2016 Hazelcast, Inc.. All Rights Reserved.