public interface StoreEventFilter<K,V>
Store
event filtersModifier and Type | Method and Description |
---|---|
boolean |
acceptEvent(EventType type,
K key,
V oldValue,
V newValue)
Checks if an event is accepted.
|
boolean acceptEvent(EventType type, K key, V oldValue, V newValue)
Depending on the event type, oldValue or newValue may be null. EventType.CREATED
events do not have an
old value, EventType.UPDATED
events have both while all other events only have an old value.
type
- the event typekey
- the key of the mapping on which the event occursoldValue
- the old value, for UPDATED, EXPIRED, EVICTED and REMOVED eventsnewValue
- the new value, for UPDATED and CREATED eventstrue
if the event is accepted, false
otherwise