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>
AParameterizedBuilderthat 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.DaemonPoolrealize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters)Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolverto resolve values any referencedParameters.voidsetMaxThreadCount(Expression<Integer> cThreadsMax)voidsetMinThreadCount(Expression<Integer> cThreadsMin)
-
-
-
Method Detail
-
realize
public com.tangosol.internal.util.DaemonPool realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters)
Description copied from interface:ParameterizedBuilderRealizes (creates if necessary) an instance of a object of type T, using the providedParameterResolverto resolve values any referencedParameters.- Specified by:
realizein interfaceParameterizedBuilder<com.tangosol.internal.util.DaemonPool>- Parameters:
resolver- theParameterResolverfor resolving namedParametersloader- theClassLoaderfor loading any necessary classes and ifnulltheClassLoaderused 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)
-
-