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
Constructors Constructor Description WrapperSocketAddressProviderBuilder(AddressProviderBuilder bldr)
Construct a WrapperSocketAddressProviderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEphemeral()
Return the flag indicating that the addresses should be ephemeral.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.WrapperSocketAddressProviderBuilder
setEphemeral(boolean fEphemeral)
Set the flag indicating that the addresses should be ephemeral.
-
-
-
Constructor Detail
-
WrapperSocketAddressProviderBuilder
public WrapperSocketAddressProviderBuilder(AddressProviderBuilder bldr)
Construct a WrapperSocketAddressProviderBuilder.- Parameters:
bldr
- the AddressProviderBuilder to wrap
-
-
Method Detail
-
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
public WrapperSocketAddressProviderBuilder setEphemeral(boolean fEphemeral)
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
-
-