public abstract class AbstractCacheEventFilterConverter<K,V,C> extends Object implements CacheEventFilterConverter<K,V,C>
CacheEventFilter.accept(Object, Object, org.infinispan.metadata.Metadata, Object, org.infinispan.metadata.Metadata, EventType)
and Converter.convert(Object, Object, org.infinispan.metadata.Metadata) methods so they just call the
CacheEventFilterConverter.filterAndConvert(Object, Object, org.infinispan.metadata.Metadata, Object, org.infinispan.metadata.Metadata, EventType)
method and then do the right thing.| Constructor and Description |
|---|
AbstractCacheEventFilterConverter() |
| 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.
|
C |
convert(K key,
V oldValue,
Metadata oldMetadata,
V newValue,
Metadata newMetadata,
EventType eventType)
Converts the given newValue into something different possibly.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterAndConvertpublic final C convert(K key, V oldValue, Metadata oldMetadata, V newValue, Metadata newMetadata, EventType eventType)
CacheEventConverterconvert in interface CacheEventConverter<K,V,C>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 raisedpublic final boolean accept(K key, V oldValue, Metadata oldMetadata, V newValue, Metadata newMetadata, EventType eventType)
CacheEventFilteraccept in interface CacheEventFilter<K,V>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 raisedCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.