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<org.wildfly.clustering.registry.RegistryListener<K,V>,ExecutorService>,org.infinispan.notifications.cachelistener.filter.CacheEventFilter<Object,Object>,org.wildfly.clustering.Registrar<org.wildfly.clustering.registry.RegistryListener<K,V>>,org.wildfly.clustering.registry.Registry<K,V>,org.wildfly.common.function.ExceptionRunnable<org.infinispan.commons.CacheException>
public class CacheRegistry<K,V> extends Object implements org.wildfly.clustering.registry.Registry<K,V>, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<Object,Object>, org.wildfly.common.function.ExceptionRunnable<org.infinispan.commons.CacheException>, Function<org.wildfly.clustering.registry.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 booleanaccept(Object key, Object oldValue, org.infinispan.metadata.Metadata oldMetadata, Object newValue, org.infinispan.metadata.Metadata newMetadata, org.infinispan.notifications.cachelistener.filter.EventType eventType)ExecutorServiceapply(org.wildfly.clustering.registry.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(org.wildfly.clustering.group.Node node)org.wildfly.clustering.group.GroupgetGroup()org.wildfly.clustering.Registrationregister(org.wildfly.clustering.registry.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)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfaceorg.wildfly.common.function.ExceptionRunnable<K>
-
accept
public boolean accept(Object key, Object oldValue, org.infinispan.metadata.Metadata oldMetadata, Object newValue, org.infinispan.metadata.Metadata newMetadata, org.infinispan.notifications.cachelistener.filter.EventType eventType)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.registry.Registry<K,V>
-
register
public org.wildfly.clustering.Registration register(org.wildfly.clustering.registry.RegistryListener<K,V> listener)
- Specified by:
registerin interfaceorg.wildfly.clustering.Registrar<K>
-
apply
public ExecutorService apply(org.wildfly.clustering.registry.RegistryListener<K,V> listener)
-
getGroup
public org.wildfly.clustering.group.Group getGroup()
-
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)
-
-