Class PrePassivateNonBlockingListener<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.listener.EventListenerRegistrar
org.wildfly.clustering.cache.infinispan.embedded.listener.CacheEventListenerRegistrar<K,V>
org.wildfly.clustering.cache.infinispan.embedded.listener.PrePassivateNonBlockingListener<K,V>
- Type Parameters:
K- cache key typeV- cache value type
- All Implemented Interfaces:
CacheListenerRegistrar<K,V>, ListenerRegistrar
Generic non-blocking pre-passivation listener that delegates to a non-blocking consumer.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionPrePassivateNonBlockingListener(org.infinispan.Cache<K, V> cache, BiConsumer<K, V> listener) Creates a non-blocking pre-passivate listener -
Method Summary
Methods inherited from class CacheEventListenerRegistrar
registerMethods inherited from class EventListenerRegistrar
registerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CacheListenerRegistrar
register, registerMethods inherited from interface ListenerRegistrar
register
-
Constructor Details
-
PrePassivateNonBlockingListener
Creates a non-blocking pre-passivate listener- Parameters:
cache- an embedded cachelistener- a non-blocking listener function
-