public final class JPAContinuousQueryCacheEventFilterConverter<K,V> extends AbstractCacheEventFilterConverter<K,V,ContinuousQueryResult<V>>
Modifier and Type | Class and Description |
---|---|
static class |
JPAContinuousQueryCacheEventFilterConverter.Externalizer |
Constructor and Description |
---|
JPAContinuousQueryCacheEventFilterConverter(String jpaQuery,
Map<String,Object> namedParameters,
Class<? extends org.infinispan.objectfilter.Matcher> matcherImplClass) |
Modifier and Type | Method and Description |
---|---|
ContinuousQueryResult<V> |
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.
|
void |
injectDependencies(Cache cache)
Acquires a Matcher instance from the ComponentRegistry of the given Cache object.
|
String |
toString() |
accept, convert
public void injectDependencies(Cache cache)
public ContinuousQueryResult<V> filterAndConvert(K key, V oldValue, Metadata oldMetadata, V newValue, Metadata newMetadata, EventType eventType)
CacheEventFilterConverter
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.