public final class EventListenerWrapper<K,V> extends java.lang.Object implements CacheEventListener<K,V>
CacheEventListener and their configuration.| Constructor and Description |
|---|
EventListenerWrapper(CacheEventListener<? super K,? super V> listener) |
EventListenerWrapper(CacheEventListener<? super K,? super V> listener,
EventFiring firing,
EventOrdering ordering,
java.util.EnumSet<EventType> forEvents) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
EventFiring |
getFiringMode() |
CacheEventListener<? super K,? super V> |
getListener() |
int |
hashCode() |
boolean |
isForEventType(EventType type) |
boolean |
isOrdered() |
void |
onEvent(CacheEvent<? extends K,? extends V> event)
Invoked on
CacheEvent firing. |
public EventListenerWrapper(CacheEventListener<? super K,? super V> listener)
public EventListenerWrapper(CacheEventListener<? super K,? super V> listener, EventFiring firing, EventOrdering ordering, java.util.EnumSet<EventType> forEvents)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic void onEvent(CacheEvent<? extends K,? extends V> event)
CacheEventListenerCacheEvent firing.
This method is invoked according to the EventOrdering, EventFiring and
EventType requirements provided at listener registration time.
Any exception thrown from this listener will be swallowed and logged but will not prevent other listeners to run.
onEvent in interface CacheEventListener<K,V>event - the actual CacheEventpublic CacheEventListener<? super K,? super V> getListener()
public boolean isForEventType(EventType type)
public boolean isOrdered()
public EventFiring getFiringMode()