Interface LocalRegistry<K,V>
- Type Parameters:
K- the registry key typeV- the registry value type
- All Superinterfaces:
AutoCloseable, Registrar<RegistryListener<K,V>>, Registry<LocalGroupMember, K, V>
Local
Registry.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiongetGroup()Returns the group associated with this factory.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.Methods inherited from interface Registry
close, getEntries, getEntry
-
Method Details
-
getGroup
LocalGroup getGroup()Description copied from interface:RegistryReturns the group associated with this factory.- Specified by:
getGroupin interfaceRegistry<LocalGroupMember, K, V>- Returns:
- a group
-
of
Creates a local registry with the specified group and registry entry.- Type Parameters:
K- the registry key typeV- the registry value type- Parameters:
group- the local groupentry- the local registry entrycloseTask- a task to run onRegistry.close().- Returns:
- a local registry with the specified group and registry entry.
-