Class ServiceFailurePolicyBuilder

java.lang.Object
com.tangosol.coherence.config.builder.ServiceFailurePolicyBuilder
All Implemented Interfaces:
ParameterizedBuilder<ServiceFailurePolicy>

public class ServiceFailurePolicyBuilder extends Object implements ParameterizedBuilder<ServiceFailurePolicy>
Build a default or customized ServiceFailurePolicy.

Defer configuration exception reporting until instantiated.

Since:
Coherence 12.2.1
Author:
jf 2015.02.24
  • Constructor Details

    • ServiceFailurePolicyBuilder

      public ServiceFailurePolicyBuilder(int nPolicy)
      Create Defaults.
      Parameters:
      nPolicy - one of DefaultServiceFailurePolicy.POLICY_EXIT_CLUSTER, DefaultServiceFailurePolicy.POLICY_EXIT_PROCESS or DefaultServiceFailurePolicy.POLICY_LOGGING
    • ServiceFailurePolicyBuilder

      public ServiceFailurePolicyBuilder(ParameterizedBuilder<ServiceFailurePolicy> builder, XmlElement xmlConfig)
      ServiceFailurePolicy constructor for customized builder.
      Parameters:
      builder - customized builder
      xmlConfig - optional configuration element for reporting configuration error.
    • ServiceFailurePolicyBuilder

      public ServiceFailurePolicyBuilder(String sPolicy, XmlElement xmlConfig)
      Default ServiceFailurePolicy from Xml value in configuration <service-failure-policy>.
      Parameters:
      sPolicy - default ServiceFailurePolicy DefaultServiceFailurePolicy
      xmlConfig - optional configuration element for reporting configuration error.
  • Method Details