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
ConstructorDescription -
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 theReliability
mode.void
validate()
Validate the data in this builder before building the configuration bean
-
Constructor Details
-
ClusteredLockManagerConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in 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 theReliability
mode.Default value is
Reliability.AVAILABLE
.- Parameters:
reliability
- theReliability
mode.- See Also:
-
validate
public void validate()Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<ClusteredLockManagerConfiguration>
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<ClusteredLockManagerConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in 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
-