Class RegistryUtils
java.lang.Object
com.erudika.para.core.utils.RegistryUtils
A utility for creating, reading, and updating registries. The Registry allows for efficient sharing of information
between multiple nodes of a Para cluster. Registry objects are saved in the DAO resource for the root application.
- Author:
- Jeremy Wiesner [[email protected]]
-
Method Summary
Modifier and TypeMethodDescriptiongetRegistry(String registryName) Retrieve an entire registry.static ObjectRetrieve one specific value from a registry.static voidAdd a specific value to a registry.static voidremoveValue(String registryName, String key) Remove a specific value from a registry.
-
Method Details
-
putValue
Add a specific value to a registry. If the registry doesn't exist yet, create it.- Parameters:
registryName- the name of the registry.key- the unique key corresponding to the value to insert (typically an appid).value- the value to add to the registry.
-
getValue
Retrieve one specific value from a registry.- Parameters:
registryName- the name of the registry.key- the unique key corresponding to the value to retrieve (typically an appid).- Returns:
- the value corresponding to the registry key, null if no value is found for the specified key.
-
removeValue
-
getRegistry
-