@Experimental public interface ConfigurationPersistenceService
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTER_CONFIG |
Modifier and Type | Method and Description |
---|---|
CacheConfig |
getCacheConfig(String group)
retrieves the configuration object of a member group
|
CacheConfig |
getCacheConfig(String group,
boolean createNew) |
Set<String> |
getGroups()
retrieves all the group names in the cluster
|
void |
updateCacheConfig(String group,
UnaryOperator<CacheConfig> mutator)
update the cluster configuration of a member group
|
static final String CLUSTER_CONFIG
Set<String> getGroups()
CacheConfig getCacheConfig(String group)
group
- the member group name, if null, then "cluster" is assumedCacheConfig getCacheConfig(String group, boolean createNew)
void updateCacheConfig(String group, UnaryOperator<CacheConfig> mutator)
group
- the member group name, if null, then "cluster" is assumedmutator
- the change you want to apply to the configuration. mutator returns null
indicating that no update
is done to the CacheConfig, or it returns the updated CacheConfig