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.server.registry.RegistryListener<K,,V>, ExecutorService> org.wildfly.clustering.server.Registrar<org.wildfly.clustering.server.registry.RegistryListener<K,,V>> org.wildfly.clustering.server.Registration,org.wildfly.clustering.server.registry.Registry<K,,V, CacheContainerGroupMember> org.wildfly.common.function.ExceptionRunnable<org.infinispan.commons.CacheException>
public class CacheRegistry<K,V>
extends Object
implements org.wildfly.clustering.server.registry.Registry<K,V,CacheContainerGroupMember>, org.wildfly.common.function.ExceptionRunnable<org.infinispan.commons.CacheException>, Function<org.wildfly.clustering.server.registry.RegistryListener<K,V>,ExecutorService>
Clustered
Registry backed by an Infinispan cache.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionCacheRegistry(CacheRegistryConfiguration config, Map.Entry<K, V> entry, Runnable closeTask) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()event(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<org.infinispan.remoting.transport.Address, Map.Entry<K, V>> event) getEntry(CacheContainerGroupMember member) getGroup()org.wildfly.clustering.server.Registrationremoved(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()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.server.Registration
-
register
public org.wildfly.clustering.server.Registration register(org.wildfly.clustering.server.registry.RegistryListener<K, V> listener) - Specified by:
registerin interfaceorg.wildfly.clustering.server.Registrar<K>
-
apply
-
getGroup
- Specified by:
getGroupin interfaceorg.wildfly.clustering.server.registry.Registry<K,V, CacheContainerGroupMember>
-
getEntries
- Specified by:
getEntriesin interfaceorg.wildfly.clustering.server.registry.Registry<K,V, CacheContainerGroupMember>
-
getEntry
- Specified by:
getEntryin interfaceorg.wildfly.clustering.server.registry.Registry<K,V, CacheContainerGroupMember>
-
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)
-