Class FixedBuilder
java.lang.Object
com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder<NamedExecutorService>
com.oracle.coherence.concurrent.config.builders.AbstractExecutorWithFactoryBuilder<NamedExecutorService>
com.oracle.coherence.concurrent.config.builders.FixedBuilder
- All Implemented Interfaces:
ParameterizedBuilder<NamedExecutorService>
A
ParameterizedBuilder for constructing a NamedExecutorService
wrapper that will construct a fixed thread pool executor.- Since:
- 21.12
- Author:
- rl 11.26.21
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport -
Field Summary
FieldsFields inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorWithFactoryBuilder
m_bldrFields inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder
m_name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringdescription(int cThreadCount, ThreadFactory factory) Creates the description for this executor.realize(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.voidsetThreadCount(Expression<Integer> threadCount) Set the number of threads to be used by this executor.Methods inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorWithFactoryBuilder
instantiateNamedThreadFactory, instantiateThreadFactory, setInstanceBuilderMethods inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder
register, setName
-
Field Details
-
m_threadCount
The number of threads.
-
-
Constructor Details
-
FixedBuilder
public FixedBuilder()
-
-
Method Details
-
realize
public NamedExecutorService 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.- 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
-
setThreadCount
Set the number of threads to be used by this executor.- Parameters:
threadCount- the number of threads to be used by this executor
-
description
Creates the description for this executor.- Parameters:
cThreadCount- the configured thread countfactory- theThreadFactory, if any- Returns:
- the description for this executor
-