Interface ValueRegistry<K,V>

Type Parameters:
K - the registry key type
V - the registry value type
All Known Subinterfaces:
ServiceValueExecutorRegistry<V>, ServiceValueExecutorRegistry<V>, ServiceValueRegistry<V>, ServiceValueRegistry<V>, ValueExecutorRegistry<K,V>

public interface ValueRegistry<K,V>
A registry of values.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    add(K key)
    Adds a value registration for the specified key
    void
    remove(K key)
    Removes the registration for the specified key
  • Method Details

    • add

      Consumer<V> add(K key)
      Adds a value registration for the specified key
      Parameters:
      key - a registry key
      Returns:
      a consumer to capture the value
    • remove

      void remove(K key)
      Removes the registration for the specified key
      Parameters:
      key - a registry key