Class CacheRegistry<K,V>
java.lang.Object
org.wildfly.clustering.server.infinispan.registry.CacheRegistry<K,V>
- Type Parameters:
K- key typeV- value type
- All Implemented Interfaces:
AutoCloseable,Function<RegistryListener<K,,V>, ExecutorService> Registrar<RegistryListener<K,,V>> Registry<K,,V> org.wildfly.common.function.ExceptionRunnable<org.infinispan.commons.CacheException>
public class CacheRegistry<K,V>
extends Object
implements Registry<K,V>, org.wildfly.common.function.ExceptionRunnable<org.infinispan.commons.CacheException>, Function<RegistryListener<K,V>,ExecutorService>
Clustered
Registry backed by an Infinispan cache.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCacheRegistry(CacheRegistryConfiguration<K, V> config, Map.Entry<K, V> entry, Runnable closeTask) -
Method Summary
Modifier and TypeMethodDescriptionapply(RegistryListener<K, V> listener) voidclose()event(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<org.infinispan.remoting.transport.Address, Map.Entry<K, V>> event) getGroup()register(RegistryListener<K, V> listener) removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<org.infinispan.remoting.transport.Address, Map.Entry<K, V>> event) voidrun()topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<org.infinispan.remoting.transport.Address, Map.Entry<K, V>> event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.common.function.ExceptionRunnable
andThen, compose
-
Constructor Details
-
CacheRegistry
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceorg.wildfly.common.function.ExceptionRunnable<K>
-
close
public void close() -
register
-
apply
-
getGroup
-
getEntries
- Specified by:
getEntriesin interfaceRegistry<K,V>
-
getEntry
-
topologyChanged
public CompletionStage<Void> topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<org.infinispan.remoting.transport.Address, Map.Entry<K, V>> event) -
event
public CompletionStage<Void> event(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<org.infinispan.remoting.transport.Address, Map.Entry<K, V>> event) -
removed
public CompletionStage<Void> removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<org.infinispan.remoting.transport.Address, Map.Entry<K, V>> event)
-