Class ClusterQuorumPolicyBuilder
java.lang.Object
com.tangosol.coherence.config.builder.ActionPolicyBuilder
com.tangosol.coherence.config.builder.ClusterQuorumPolicyBuilder
- All Implemented Interfaces:
ParameterizedBuilder<ActionPolicy>
Defer cache configuration validation of a
ClusterQuorumPolicyBuilder
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
ConstructorDescriptionClusterQuorumPolicyBuilder
(Map<String, Integer> mapQuorum, XmlElement xmlConfigElement) ConstructsClusterQuorumPolicyBuilder
frommapQuorum
-
Method Summary
Modifier and TypeMethodDescriptionrealize
(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 Details
-
ClusterQuorumPolicyBuilder
ConstructsClusterQuorumPolicyBuilder
frommapQuorum
- Parameters:
mapQuorum
- map of role to quorum thresholdxmlConfigElement
- optional configuration element cluster-quorum-policy used for reporting configuration exception context.
-
-
Method Details
-
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
-