Class WrapperSocketAddressProviderBuilder
java.lang.Object
com.tangosol.coherence.config.builder.WrapperSocketAddressProviderBuilder
- All Implemented Interfaces:
ParameterizedBuilder<SocketAddressProvider>
public class WrapperSocketAddressProviderBuilder
extends Object
implements ParameterizedBuilder<SocketAddressProvider>
The WrapperSocketAddressProviderBuilder wraps an AddressProviderBuilder so
that it can produce a SocketAddressProvider.
- Since:
- Coherence 12.1.3
- Author:
- pfm 2013.09.13
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
Constructor Summary
ConstructorDescriptionConstruct a WrapperSocketAddressProviderBuilder. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the flag indicating that the addresses should be ephemeral.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.setEphemeral
(boolean fEphemeral) Set the flag indicating that the addresses should be ephemeral.
-
Constructor Details
-
WrapperSocketAddressProviderBuilder
Construct a WrapperSocketAddressProviderBuilder.- Parameters:
bldr
- the AddressProviderBuilder to wrap
-
-
Method Details
-
realize
public SocketAddressProvider 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<SocketAddressProvider>
- 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
-
setEphemeral
Set the flag indicating that the addresses should be ephemeral.- Parameters:
fEphemeral
- use an ephemeral address- Returns:
- this object
-
isEphemeral
public boolean isEphemeral()Return the flag indicating that the addresses should be ephemeral.- Returns:
- this object
-