Interface LocalRegistry<K,V>

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

public interface LocalRegistry<K,V> extends Registry<LocalGroupMember, K, V>
Local Registry.
Author:
Paul Ferraro
  • Method Details

    • getGroup

      LocalGroup getGroup()
      Description copied from interface: Registry
      Returns the group associated with this factory.
      Specified by:
      getGroup in interface Registry<LocalGroupMember, K, V>
      Returns:
      a group
    • of

      static <K,V> LocalRegistry<K,V> of(LocalGroup group, Map.Entry<K,V> entry, Runnable closeTask)
      Creates a local registry with the specified group and registry entry.
      Type Parameters:
      K - the registry key type
      V - the registry value type
      Parameters:
      group - the local group
      entry - the local registry entry
      closeTask - a task to run on Registry.close().
      Returns:
      a local registry with the specified group and registry entry.