Class DaemonPoolBuilder
java.lang.Object
com.tangosol.coherence.config.builder.DaemonPoolBuilder
- All Implemented Interfaces:
ParameterizedBuilder<com.tangosol.internal.util.DaemonPool>
public class DaemonPoolBuilder
extends Object
implements ParameterizedBuilder<com.tangosol.internal.util.DaemonPool>
A
ParameterizedBuilder
that builds a DaemonPool
.
If the minimum thread count is not configured it will be set to
the number of processors
.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.tangosol.internal.util.DaemonPool
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.void
setMaxThreadCount
(Expression<Integer> cThreadsMax) void
setMinThreadCount
(Expression<Integer> cThreadsMin)
-
Constructor Details
-
DaemonPoolBuilder
public DaemonPoolBuilder()
-
-
Method Details
-
realize
public com.tangosol.internal.util.DaemonPool realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters) Description copied from interface:ParameterizedBuilder
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<com.tangosol.internal.util.DaemonPool>
- 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
-
getMaxThreadCount
-
setMaxThreadCount
-
getMinThreadCount
-
setMinThreadCount
-