Class LocalRegistry<K,​V>

  • Type Parameters:
    K - key type
    V - value type
    All Implemented Interfaces:
    AutoCloseable, org.wildfly.clustering.Registrar<org.wildfly.clustering.registry.RegistryListener<K,​V>>, org.wildfly.clustering.registry.Registry<K,​V>

    public class LocalRegistry<K,​V>
    extends Object
    implements org.wildfly.clustering.registry.Registry<K,​V>
    Non-clustered Registry implementation.
    Author:
    Paul Ferraro
    • Constructor Detail

      • LocalRegistry

        public LocalRegistry​(org.wildfly.clustering.group.Group group,
                             Map.Entry<K,​V> entry,
                             Runnable closeTask)
    • Method Detail

      • getGroup

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

        public org.wildfly.clustering.Registration register​(org.wildfly.clustering.registry.RegistryListener<K,​V> object)
        Specified by:
        register in interface org.wildfly.clustering.Registrar<K>
      • 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>
      • close

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