public interface CacheEventFilterConverter<K,V,C> extends CacheEventFilter<K,V>, CacheEventConverter<K,V,C>
Modifier and Type | Method and Description |
---|---|
C |
filterAndConvert(K key,
V oldValue,
Metadata oldMetadata,
V newValue,
Metadata newMetadata,
EventType eventType)
Will both filter the entry and if passed subsequently convert the value to a new value.
|
default MediaType |
format() |
accept
convert, useRequestFormat
C filterAndConvert(K key, V oldValue, Metadata oldMetadata, V newValue, Metadata newMetadata, EventType eventType)
null
will symbolize the value not passing the filter, so ensure your conversion will not return null
if
you want this entry to be returned.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 raisednull
value converted value when it also passes the filter or null
for when it
doesn't pass the filterdefault MediaType format()
format
in interface CacheEventConverter<K,V,C>
format
in interface CacheEventFilter<K,V>
Copyright © 2021 JBoss by Red Hat. All rights reserved.