Class ClusteredLockManagerConfigurationBuilder
java.lang.Object
org.infinispan.lock.configuration.ClusteredLockManagerConfigurationBuilder
- All Implemented Interfaces:
Builder<ClusteredLockManagerConfiguration>
public class ClusteredLockManagerConfigurationBuilder
extends Object
implements Builder<ClusteredLockManagerConfiguration>
The
ClusteredLockManager configuration builder.
It configures the number of owner and the Reliability
- Since:
- 9.4
- Author:
- Katia Aresti, karesti@redhat.com
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create the configuration beannumOwner(int numOwners) Sets the number of copies of the counter's value available in the cluster.Builder<?>read(ClusteredLockManagerConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.reliability(Reliability reliability) Sets theReliabilitymode.voidvalidate()Validate the data in this builder before building the configuration bean
-
Constructor Details
-
ClusteredLockManagerConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<ClusteredLockManagerConfiguration>
-
defaultConfiguration
- Returns:
- the default
ClusteredLockManagerConfiguration.
-
numOwner
Sets the number of copies of the counter's value available in the cluster.A higher value will provide better availability at the cost of more expensive updates.
Default value is 2.
- Parameters:
numOwners- the number of copies.
-
reliability
Sets theReliabilitymode.Default value is
Reliability.AVAILABLE.- Parameters:
reliability- theReliabilitymode.- See Also:
-
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<ClusteredLockManagerConfiguration>
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<ClusteredLockManagerConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<ClusteredLockManagerConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
addClusteredLock
-