Interface RegistryFactory<M extends GroupMember,K,V>
- Type Parameters:
M- the member typeK- the type of the registry entry keyV- 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 Summary
Modifier and TypeMethodDescriptioncreateRegistry(Map.Entry<K, V> entry) Creates a registry using the specified entry.static <M extends GroupMember,K, V>
RegistryFactory<M,K, V> singleton(BiFunction<Map.Entry<K, V>, Runnable, Registry<M, K, V>> factory)
-
Method Details
-
createRegistry
Creates a registry using the specified entry.- Parameters:
entry- the local registry entry- Returns:
- a registry
-
singleton
static <M extends GroupMember,K, RegistryFactory<M,V> K, singletonV> (BiFunction<Map.Entry<K, V>, Runnable, Registry<M, K, V>> factory)
-