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

public interface RegistryFactory<M extends GroupMember, K, V>
Factory for creating a clustered registry.
Author:
Paul Ferraro
  • Method Details

    • createRegistry

      Registry<M,K,V> createRegistry(Map.Entry<K,V> entry)
      Creates a registry using the specified entry.
      Parameters:
      entry - the local registry entry
      Returns:
      a registry
    • singleton

      static <M extends GroupMember, K, V> RegistryFactory<M,K,V> singleton(BiFunction<Map.Entry<K,V>, Runnable, Registry<M,K,V>> factory)
      Creates a registry factory from the specified function.
      Type Parameters:
      M - the member type
      K - the type of the registry entry key
      V - the type of the registry entry value
      Parameters:
      factory - the function on which the returned registry factory is based
      Returns:
      a registry factory.