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>
AParameterizedBuilder
that builds aDaemonPool
. If the minimum thread count is not configured it will be set to thenumber of processors
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
-
Constructor Summary
Constructors Constructor Description DaemonPoolBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression<Integer>
getMaxThreadCount()
Expression<Integer>
getMinThreadCount()
com.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)
-
-
-
Method Detail
-
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
public Expression<Integer> getMaxThreadCount()
-
setMaxThreadCount
@Injectable("thread-count-max") public void setMaxThreadCount(Expression<Integer> cThreadsMax)
-
getMinThreadCount
public Expression<Integer> getMinThreadCount()
-
setMinThreadCount
@Injectable("thread-count-min") public void setMinThreadCount(Expression<Integer> cThreadsMin)
-
-