Class PrePassivateListener<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.listener.PrePassivateListener<K,V>
- Type Parameters:
K- cache key typeV- cache value type
Generic non-blocking pre-passivation listener that delegates to a generic cache event listener.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionPrePassivateListener(Function<org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K, V>, CompletionStage<Void>> listener) Creates a non-blocking pre-passivate listener -
Method Summary
Modifier and TypeMethodDescriptionprePassivate(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<K, V> event) Handles cache entry passivation events.
-
Constructor Details
-
PrePassivateListener
public PrePassivateListener(Function<org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K, V>, CompletionStage<Void>> listener) Creates a non-blocking pre-passivate listener- Parameters:
listener- a non-blocking listener function
-
-
Method Details
-
prePassivate
public CompletionStage<Void> prePassivate(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<K, V> event) Handles cache entry passivation events.- Parameters:
event- a cache entry passivation event- Returns:
- a completion stage
-