Class ProxyQuorumPolicyBuilder
java.lang.Object
com.tangosol.coherence.config.builder.ActionPolicyBuilder
com.tangosol.coherence.config.builder.ProxyQuorumPolicyBuilder
- All Implemented Interfaces:
ParameterizedBuilder<ActionPolicy>
Defer cache configuration validation of a ProxyQuorumPolicy until realized.
- Since:
- Coherence 12.2.1
- Author:
- jf 2015.02.05
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.coherence.config.builder.ActionPolicyBuilder
ActionPolicyBuilder.ActionPolicyParameterizedBuilder, ActionPolicyBuilder.NullImplementationBuilder, ActionPolicyBuilder.QuorumRuleNested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConnect description and also xml configuration element name.static final intConnect quorum mask. -
Constructor Summary
ConstructorsConstructorDescriptionProxyQuorumPolicyBuilder(int nRuleThreshold, XmlElement xmlConfig) ConstructsProxyQuorumPolicyBuilderfrom configuration file context and xml element -
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 providedParameterResolverto resolve values any referencedParameters.
-
Field Details
-
MASK_CONNECT
public static final int MASK_CONNECTConnect quorum mask.- See Also:
-
CONNECT_RULE_NAME
Connect description and also xml configuration element name.- See Also:
-
-
Constructor Details
-
ProxyQuorumPolicyBuilder
ConstructsProxyQuorumPolicyBuilderfrom configuration file context and xml element- Parameters:
nRuleThreshold- connect quorum rule thresholdxmlConfig- containing element proxy-cache-quorum-policy
-
-
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 providedParameterResolverto resolve values any referencedParameters.- Parameters:
resolver- theParameterResolverfor resolving namedParametersloader- theClassLoaderfor loading any necessary classes and ifnulltheClassLoaderused 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
-