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>
ClusteredRegistrybacked by an Infinispan cache.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CacheRegistry(CacheRegistryConfiguration<K,V> config, Map.Entry<K,V> entry, Runnable closeTask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorServiceapply(RegistryListener<K,V> listener)voidclose()CompletionStage<Void>event(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<org.infinispan.remoting.transport.Address,Map.Entry<K,V>> event)Map<K,V>getEntries()Map.Entry<K,V>getEntry(Node node)GroupgetGroup()Registrationregister(RegistryListener<K,V> listener)CompletionStage<Void>removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<org.infinispan.remoting.transport.Address,Map.Entry<K,V>> event)voidrun()CompletionStage<Void>topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<org.infinispan.remoting.transport.Address,Map.Entry<K,V>> event)
-
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfaceorg.wildfly.common.function.ExceptionRunnable<K>
-
close
public void close()
-
register
public Registration register(RegistryListener<K,V> listener)
-
apply
public ExecutorService apply(RegistryListener<K,V> listener)
-
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)
-
-