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.QuorumRule
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Connect description and also xml configuration element name.static final int
Connect quorum mask. -
Constructor Summary
ConstructorDescriptionProxyQuorumPolicyBuilder
(int nRuleThreshold, XmlElement xmlConfig) ConstructsProxyQuorumPolicyBuilder
from 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 providedParameterResolver
to resolve values any referencedParameter
s.
-
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
ConstructsProxyQuorumPolicyBuilder
from 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 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
-