Class PartitionedCacheQuorumPolicyBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.ActionPolicyBuilder
-
- com.tangosol.coherence.config.builder.PartitionedCacheQuorumPolicyBuilder
-
- All Implemented Interfaces:
ParameterizedBuilder<ActionPolicy>
public class PartitionedCacheQuorumPolicyBuilder extends ActionPolicyBuilder
Defer cache configuration validation of an ActionPolicy until realized.- Since:
- Coherence 12.2.1
- Author:
- jf 2015.01.29
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.coherence.config.builder.ActionPolicyBuilder
ActionPolicyBuilder.ActionPolicyParameterizedBuilder, ActionPolicyBuilder.NullImplementationBuilder, ActionPolicyBuilder.QuorumRule
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
-
Constructor Summary
Constructors Constructor Description PartitionedCacheQuorumPolicyBuilder(AddressProviderBuilder bldrRecoveryHostAddress, XmlElement xmlConfig)
ConstructsPartitionedCacheQuorumPolicyBuilder
from configuration file context and xml element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQuorumRule(String sRuleName, int nRuleMask, int nRuleThreshold)
void
addQuorumRule(String sRuleName, int nRuleMask, int nRuleThreshold, float flRuleThresholdPct)
ActionPolicy
realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters)
Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolver
to resolve values any referencedParameter
s.
-
-
-
Constructor Detail
-
PartitionedCacheQuorumPolicyBuilder
public PartitionedCacheQuorumPolicyBuilder(AddressProviderBuilder bldrRecoveryHostAddress, XmlElement xmlConfig)
ConstructsPartitionedCacheQuorumPolicyBuilder
from configuration file context and xml element- Parameters:
bldrRecoveryHostAddress
- Recovery Host AddressProvider builder
-
-
Method Detail
-
addQuorumRule
public void addQuorumRule(String sRuleName, int nRuleMask, int nRuleThreshold)
-
addQuorumRule
public void addQuorumRule(String sRuleName, int nRuleMask, int nRuleThreshold, float flRuleThresholdPct)
-
realize
public ActionPolicy realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters) throws ConfigurationException
Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolver
to resolve values any referencedParameter
s.- Parameters:
resolver
- theParameterResolver
for resolving namedParameter
sloader
- theClassLoader
for loading any necessary classes and ifnull
theClassLoader
used to load the builder will be used insteadlistParameters
- an optionalParameterList
(may benull
) to be used for realizing the instance, eg: used as constructor parameters- Returns:
- an instance of T
- Throws:
ConfigurationException
-
-