Class ProxyServiceLoadBalancerBuilder
java.lang.Object
com.tangosol.coherence.config.builder.ServiceLoadBalancerBuilder
com.tangosol.coherence.config.builder.ProxyServiceLoadBalancerBuilder
- All Implemented Interfaces:
ParameterizedBuilder<ServiceLoadBalancer>
ProxyServiceLoadBalancerBuilder
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
Fields inherited from class com.tangosol.coherence.config.builder.ServiceLoadBalancerBuilder
f_xmlConfig, m_builder
-
Constructor Summary
ConstructorDescriptionProxyServiceLoadBalancerBuilder
(ParameterizedBuilder bldr, XmlElement xmlConfig) ConstructsProxyServiceLoadBalancerBuilder
-
Method Summary
Modifier and TypeMethodDescriptionUse 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.
-
Constructor Details
-
ProxyServiceLoadBalancerBuilder
ConstructsProxyServiceLoadBalancerBuilder
- Parameters:
bldr
- optional customized ProxyServiceLoadBalancerxmlConfig
- optional configuration element for reporting configuration exception.
-
-
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>
- Overrides:
realize
in classServiceLoadBalancerBuilder
- 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.- Specified by:
getDefaultLoadBalancer
in classServiceLoadBalancerBuilder
- Returns:
- default ServiceLoadBalancer
-