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 String
CONNECT_RULE_NAME
Connect description and also xml configuration element name.static int
MASK_CONNECT
Connect quorum mask.
-
Constructor Summary
Constructors Constructor Description ProxyQuorumPolicyBuilder(int nRuleThreshold, XmlElement xmlConfig)
ConstructsProxyQuorumPolicyBuilder
from configuration file context and xml element
-
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.
-
-
-
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)
ConstructsProxyQuorumPolicyBuilder
from 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 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
-
-