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>>

@Deprecated(forRemoval=true) public interface Registry<K,V> extends Registrar<RegistryListener<K,V>>, AutoCloseable
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by Registry.
Clustered registry abstraction that stores a unique key/value per node.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Removes our entry from the registry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns all registry entries in this group.
    getEntry(Node node)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the registry entry for the specified node.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the group associated with this factory.

    Methods inherited from interface org.wildfly.clustering.Registrar

    register
  • Method Details

    • getGroup

      Group getGroup()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the group associated with this factory.
      Returns:
      a group
    • getEntries

      Map<K,V> getEntries()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all registry entries in this group.
      Returns:
      a map for entries
    • getEntry

      Map.Entry<K,V> getEntry(Node node)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Removes our entry from the registry. Once closed, the registry can no longer be accessed.
      Specified by:
      close in interface AutoCloseable