org.infinispan.jcache
Class JCacheListenerRegistration<K,V>

java.lang.Object
  extended by org.infinispan.jcache.JCacheListenerRegistration<K,V>
Type Parameters:
K - the type of keys
V - 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

Constructor Summary
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.
 
Method Summary
 boolean equals(Object o)
           
 javax.cache.event.CacheEntryEventFilter<? super K,? super V> getCacheEntryFilter()
           
 javax.cache.event.CacheEntryListener<? super K,? super V> getCacheEntryListener()
           
 int hashCode()
           
 boolean isOldValueRequired()
           
 boolean isSynchronous()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 CacheEntryListener
filter - the optional CacheEntryEventFilter
isOldValueRequired - if the old value is required for events with this listener
isSynchronous - if the listener should block the thread causing the event
Method Detail

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.