Class ProxyQuorumPolicyBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.ActionPolicyBuilder
-
- com.tangosol.coherence.config.builder.ProxyQuorumPolicyBuilder
-
- All Implemented Interfaces:
ParameterizedBuilder<ActionPolicy>
public class ProxyQuorumPolicyBuilder extends ActionPolicyBuilder
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.QuorumRule
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECT_RULE_NAMEConnect description and also xml configuration element name.static intMASK_CONNECTConnect quorum mask.
-
Constructor Summary
Constructors Constructor Description ProxyQuorumPolicyBuilder(int nRuleThreshold, XmlElement xmlConfig)ConstructsProxyQuorumPolicyBuilderfrom configuration file context and xml element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionPolicyrealize(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 Detail
-
MASK_CONNECT
public static final int MASK_CONNECT
Connect quorum mask.- See Also:
- Constant Field Values
-
CONNECT_RULE_NAME
public static final String CONNECT_RULE_NAME
Connect description and also xml configuration element name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProxyQuorumPolicyBuilder
public ProxyQuorumPolicyBuilder(int nRuleThreshold, XmlElement xmlConfig)ConstructsProxyQuorumPolicyBuilderfrom configuration file context and xml element- Parameters:
nRuleThreshold- connect quorum rule thresholdxmlConfig- containing element proxy-cache-quorum-policy
-
-
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 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
-
-