public interface CacheEventFilter<K,V>
Modifier and Type | Method and Description |
---|---|
boolean |
accept(K key,
V oldValue,
Metadata oldMetadata,
V newValue,
Metadata newMetadata,
EventType eventType)
Whether or not this event should be raised to the listener it is attached to.
|
default MediaType |
format() |
boolean accept(K key, V oldValue, Metadata oldMetadata, V newValue, Metadata newMetadata, EventType eventType)
key
- The key for the entry that was changed for the eventoldValue
- The previous value before the event takes placeoldMetadata
- The old value before the event takes placenewValue
- The new value for the entry after the event takes placenewMetadata
- The new metadata for the entry after the event takes placeeventType
- The type of event that is being raiseddefault MediaType format()
Copyright © 2021 JBoss by Red Hat. All rights reserved.