org.infinispan.jcache
Class JCacheListenerRegistration<K,V>
java.lang.Object
org.infinispan.jcache.JCacheListenerRegistration<K,V>
- Type Parameters:
K - the type of keysV - the type of values
- All Implemented Interfaces:
- javax.cache.event.CacheEntryListenerRegistration<K,V>
public class JCacheListenerRegistration<K,V>
- extends Object
- implements javax.cache.event.CacheEntryListenerRegistration<K,V>
The reference implementation of the CacheEntryListenerRegistration.
- Author:
- Galder ZamarreƱo
JCacheListenerRegistration
public JCacheListenerRegistration(javax.cache.event.CacheEntryListener<? super K,? super V> listener,
javax.cache.event.CacheEntryEventFilter<? super K,? super V> filter,
boolean isOldValueRequired,
boolean isSynchronous)
- Constructs an
JCacheListenerRegistration.
- Parameters:
listener - the CacheEntryListenerfilter - the optional CacheEntryEventFilterisOldValueRequired - if the old value is required for events with
this listenerisSynchronous - if the listener should block the thread
causing the event
getCacheEntryFilter
public javax.cache.event.CacheEntryEventFilter<? super K,? super V> getCacheEntryFilter()
- Specified by:
getCacheEntryFilter in interface javax.cache.event.CacheEntryListenerRegistration<K,V>
getCacheEntryListener
public javax.cache.event.CacheEntryListener<? super K,? super V> getCacheEntryListener()
- Specified by:
getCacheEntryListener in interface javax.cache.event.CacheEntryListenerRegistration<K,V>
isOldValueRequired
public boolean isOldValueRequired()
- Specified by:
isOldValueRequired in interface javax.cache.event.CacheEntryListenerRegistration<K,V>
isSynchronous
public boolean isSynchronous()
- Specified by:
isSynchronous in interface javax.cache.event.CacheEntryListenerRegistration<K,V>
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.