Class CacheRegistry<K,​V>

  • Type Parameters:
    K - key type
    V - 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>
    Clustered Registry backed by an Infinispan cache.
    Author:
    Paul Ferraro
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface org.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)
        Specified by:
        accept in interface org.infinispan.notifications.cachelistener.filter.CacheEventFilter<K,​V>
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface org.wildfly.clustering.registry.Registry<K,​V>
      • register

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

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

        public org.wildfly.clustering.group.Group getGroup()
        Specified by:
        getGroup in interface org.wildfly.clustering.registry.Registry<K,​V>
      • getEntries

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

        public Map.Entry<K,​V> getEntry​(org.wildfly.clustering.group.Node node)
        Specified by:
        getEntry in interface org.wildfly.clustering.registry.Registry<K,​V>
      • 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)