Class PrePassivateBlockingListener<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.PrePassivateBlockingListener<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 blocking consumer.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionPrePassivateBlockingListener(org.infinispan.Cache<K, V> cache, BiConsumer<K, V> listener) Creates a blocking listener of pre-passivate events. -
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
-
PrePassivateBlockingListener
Creates a blocking listener of pre-passivate events.- Parameters:
cache- an embedded cachelistener- a consumer of pre-passivate events
-