Class ServiceLoadBalancerBuilder
java.lang.Object
com.tangosol.coherence.config.builder.ServiceLoadBalancerBuilder
- All Implemented Interfaces:
ParameterizedBuilder<ServiceLoadBalancer>
- Direct Known Subclasses:
InvalidConfigServiceLoadBalancerBuilder
,ProxyServiceLoadBalancerBuilder
public abstract class ServiceLoadBalancerBuilder
extends Object
implements ParameterizedBuilder<ServiceLoadBalancer>
ServiceLoadBalancerBuilder
defers evaluating configuration parameters
until ServiceLoadBalancer is instantiated.- Since:
- Coherence 12.2.1
- Author:
- jf 2015.02.10
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
Field Summary
Modifier and TypeFieldDescriptionprotected final XmlElement
Xml Configuration Element to use to report ConfigurationException.protected ParameterizedBuilder
<ServiceLoadBalancer> Customized ServiceLoadBalancerBuilder. -
Constructor Summary
ConstructorDescriptionServiceLoadBalancerBuilder
(ParameterizedBuilder<ServiceLoadBalancer> builder, XmlElement xmlConfig) ConstructsServiceLoadBalancerBuilder
-
Method Summary
Modifier and TypeMethodDescriptionabstract ServiceLoadBalancer
Use thisServiceLoadBalancer
when a customized ServiceLoadBalancer is not provided.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 Details
-
m_builder
Customized ServiceLoadBalancerBuilder. -
f_xmlConfig
Xml Configuration Element to use to report ConfigurationException. This element is optional.
-
-
Constructor Details
-
ServiceLoadBalancerBuilder
public ServiceLoadBalancerBuilder(ParameterizedBuilder<ServiceLoadBalancer> builder, XmlElement xmlConfig) ConstructsServiceLoadBalancerBuilder
- Parameters:
builder
- optional customization of ServiceLoadBalancer. if null, usegetDefaultLoadBalancer()
.
-
-
Method Details
-
realize
public ServiceLoadBalancer 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.- Specified by:
realize
in interfaceParameterizedBuilder<ServiceLoadBalancer>
- 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
-
getDefaultLoadBalancer
Use thisServiceLoadBalancer
when a customized ServiceLoadBalancer is not provided.- Returns:
- default ServiceLoadBalancer
-