public interface CacheEventFilterConverter<K,V,C> extends CacheEventFilter<K,V>, CacheEventConverter<K,V,C>
|Modifier and Type||Method and Description|
Will both filter the entry and if passed subsequently convert the value to a new value.
C filterAndConvert(K key, V oldValue, Metadata oldMetadata, V newValue, Metadata newMetadata, EventType eventType)
nullwill symbolize the value not passing the filter, so ensure your conversion will not return
nullif you want this entry to be returned.
key- The key for the entry that was changed for the event
oldValue- The previous value before the event takes place
oldMetadata- The old value before the event takes place
newValue- The new value for the entry after the event takes place
newMetadata- The new metadata for the entry after the event takes place
eventType- The type of event that is being raised
nullvalue converted value when it also passes the filter or
nullfor when it doesn't pass the filter
Copyright © 2021 JBoss by Red Hat. All rights reserved.