Interface LocalRegistry<K,V>
- Type Parameters:
K- the registry key typeV- the registry value type
- All Superinterfaces:
AutoCloseable, org.wildfly.clustering.server.Registrar<org.wildfly.clustering.server.registry.RegistryListener<K,V>>, org.wildfly.clustering.server.registry.Registry<LocalGroupMember, K, V>
public interface LocalRegistry<K,V>
extends org.wildfly.clustering.server.registry.Registry<LocalGroupMember, K, V>
Local
Registry.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiongetGroup()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 org.wildfly.clustering.server.Registrar
registerMethods inherited from interface org.wildfly.clustering.server.registry.Registry
close, getEntries, getEntry
-
Method Details
-
getGroup
LocalGroup getGroup()- Specified by:
getGroupin interfaceorg.wildfly.clustering.server.registry.Registry<LocalGroupMember, K, V>
-
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.
-