Class ClusterQuorumPolicyBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.ActionPolicyBuilder
-
- com.tangosol.coherence.config.builder.ClusterQuorumPolicyBuilder
-
- All Implemented Interfaces:
ParameterizedBuilder<ActionPolicy>
public class ClusterQuorumPolicyBuilder extends ActionPolicyBuilder
Defer cache configuration validation of aClusterQuorumPolicyBuilder
until realized.- Since:
- Coherence 12.2.1
- Author:
- jf 2015.02.04
-
-
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 ClusterQuorumPolicyBuilder(Map<String,Integer> mapQuorum, XmlElement xmlConfigElement)
ConstructsClusterQuorumPolicyBuilder
frommapQuorum
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
ClusterQuorumPolicyBuilder
public ClusterQuorumPolicyBuilder(Map<String,Integer> mapQuorum, XmlElement xmlConfigElement)
ConstructsClusterQuorumPolicyBuilder
frommapQuorum
- Parameters:
mapQuorum
- map of role to quorum thresholdxmlConfigElement
- optional configuration element cluster-quorum-policy used for reporting configuration exception context.
-
-
Method Detail
-
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
-
-