Interface Registry<M extends GroupMember, K, V>

Type Parameters:
M - the member type
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<M extends GroupMember, K, V> extends Registrar<RegistryListener<K,V>>, AutoCloseable
Registry of entries specific to a group member.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Returns all registry entries in this group.
    getEntry(M member)
    Returns the registry entry for the specified group member.
    Returns the group associated with this factory.

    Methods inherited from interface Registrar

    register
  • Method Details

    • getGroup

      Group<M> 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(M member)
      Returns the registry entry for the specified group member.
      Parameters:
      member - a group member
      Returns:
      the registry entry of the specified group member, or null if undefined.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable