public class KeyFilterAsCacheEventFilter<K> extends Object implements CacheEventFilter<K,Object>
Modifier and Type | Class and Description |
---|---|
static class |
KeyFilterAsCacheEventFilter.Externalizer |
Constructor and Description |
---|
KeyFilterAsCacheEventFilter(KeyFilter<? super K> filter) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(K key,
Object oldValue,
Metadata oldMetadata,
Object newValue,
Metadata newMetadata,
EventType eventType)
Whether or not this event should be raised to the listener it is attached to.
|
protected void |
injectDependencies(ComponentRegistry cr) |
public boolean accept(K key, Object oldValue, Metadata oldMetadata, Object newValue, Metadata newMetadata, EventType eventType)
CacheEventFilter
accept
in interface CacheEventFilter<K,Object>
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 raisedprotected void injectDependencies(ComponentRegistry cr)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.