K - key typeV - value typepublic class LocalRegistry<K,V> extends Object implements Registry<K,V>
Registry implementation.Registry.Listener<K,V>| Constructor and Description |
|---|
LocalRegistry(Group group,
RegistryEntryProvider<K,V> provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Registry.Listener<K,V> listener)
Adds a listener to this registry.
|
void |
close()
Removes our entry from the registry.
|
Map<K,V> |
getEntries()
Returns all registry entries in this group.
|
Map.Entry<K,V> |
getEntry(Node node)
Returns the registry entry for the specified node.
|
Group |
getGroup()
Returns the group associated with this factory.
|
void |
removeListener(Registry.Listener<K,V> listener)
Adds a listener from this registry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocalEntrypublic LocalRegistry(Group group, RegistryEntryProvider<K,V> provider)
public Group getGroup()
Registrypublic void addListener(Registry.Listener<K,V> listener)
RegistryaddListener in interface Registry<K,V>listener - a registry listenerpublic void removeListener(Registry.Listener<K,V> listener)
RegistryremoveListener in interface Registry<K,V>listener - a registry listenerpublic Map<K,V> getEntries()
RegistrygetEntries in interface Registry<K,V>public Map.Entry<K,V> getEntry(Node node)
RegistryCopyright © 2021 JBoss by Red Hat. All rights reserved.