Package org.wildfly.clustering.registry
Interface Registry<K,V>
-
- Type Parameters:
K- the type of the registry entry keyV- the type of the registry entry value
- All Superinterfaces:
AutoCloseable,Registrar<RegistryListener<K,V>>
public interface Registry<K,V> extends Registrar<RegistryListener<K,V>>, AutoCloseable
Clustered registry abstraction that stores a unique key/value per node.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()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.GroupgetGroup()Returns the group associated with this factory.
-
-
-
Method Detail
-
getGroup
Group getGroup()
Returns the group associated with this factory.- Returns:
- a group
-
getEntries
Map<K,V> getEntries()
Returns all registry entries in this group.- Returns:
- a map for entries
-
getEntry
Map.Entry<K,V> getEntry(Node node)
Returns the registry entry for the specified node.- Parameters:
node- a node- Returns:
- the node's registry entry, or null if undefined
-
close
void close()
Removes our entry from the registry. Once closed, the registry can no longer be accessed.- Specified by:
closein interfaceAutoCloseable
-
-