Interface Registry<K,V>

Type Parameters:
K - the type of the registry entry key
V - the type of the registry entry value
All Superinterfaces:
AutoCloseable, Registrar<RegistryListener<K,V>>

public interface Registry<K,V> extends Registrar<RegistryListener<K,V>>, AutoCloseable
Clustered registry abstraction that stores a unique key/value per node.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes our entry from the registry.
    Returns all registry entries in this group.
    getEntry(Node node)
    Returns the registry entry for the specified node.
    Returns the group associated with this factory.

    Methods inherited from interface org.wildfly.clustering.Registrar

    register
  • Method Details

    • getGroup

      Group getGroup()
      Returns the group associated with this factory.
      Returns:
      a group
    • getEntries

      Map<K,V> getEntries()
      Returns all registry entries in this group.
      Returns:
      a map for entries
    • getEntry

      Map.Entry<K,V> getEntry(Node node)
      Returns the registry entry for the specified node.
      Parameters:
      node - a node
      Returns:
      the node's registry entry, or null if undefined
    • close

      void close()
      Removes our entry from the registry. Once closed, the registry can no longer be accessed.
      Specified by:
      close in interface AutoCloseable