A registry of scoped key-values available to all the nodes in the cluster.
Intended as a general purpose tool for sharing metadata: small amounts of information that is
not frequently updated. It is not intended to be used for sharing large amount
of information nor to be exposed to users.
The registry is a global component, i.e. it is shared by all the caches in the cluster.
In order to avoid collisions each key-value entry is scoped (the
scope parameter).
For scoping one can use fully qualified names of the specific classes/packages that make use
of the ClusterRegistry.
A reference to the ClusterRegistry can be obtained either through the \@Inject annotation:
\@Inject
void setup(ClusterRegistry cs) {
..hold the reference
}
or directly form the GlobalComponentRegistry:
EmbeddedCacheManager:getGlobalComponentRegistry():getGlobalComponent(ClusterRegistry.class)