Class CacheRegistry<K,V>

java.lang.Object
org.wildfly.clustering.server.infinispan.registry.CacheRegistry<K,V>
Type Parameters:
K - key type
V - 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
  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface org.wildfly.common.function.ExceptionRunnable<K>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.wildfly.clustering.server.Registration
    • register

      public org.wildfly.clustering.server.Registration register(org.wildfly.clustering.server.registry.RegistryListener<K,V> listener)
      Specified by:
      register in interface org.wildfly.clustering.server.Registrar<K>
    • apply

      public ExecutorService apply(org.wildfly.clustering.server.registry.RegistryListener<K,V> listener)
      Specified by:
      apply in interface Function<K,V>
    • getGroup

      public CacheContainerGroup getGroup()
      Specified by:
      getGroup in interface org.wildfly.clustering.server.registry.Registry<K,V,CacheContainerGroupMember>
    • getEntries

      public Map<K,V> getEntries()
      Specified by:
      getEntries in interface org.wildfly.clustering.server.registry.Registry<K,V,CacheContainerGroupMember>
    • getEntry

      public Map.Entry<K,V> getEntry(CacheContainerGroupMember member)
      Specified by:
      getEntry in interface org.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)