Class FixedBuilder
- java.lang.Object
-
- com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder<T>
-
- com.oracle.coherence.concurrent.config.builders.AbstractExecutorWithFactoryBuilder<NamedExecutorService>
-
- com.oracle.coherence.concurrent.config.builders.FixedBuilder
-
- All Implemented Interfaces:
com.tangosol.coherence.config.builder.ParameterizedBuilder<NamedExecutorService>
public class FixedBuilder extends AbstractExecutorWithFactoryBuilder<NamedExecutorService>
AParameterizedBuilderfor constructing aNamedExecutorServicewrapper that will construct a fixed thread pool executor.- Since:
- 21.12
- Author:
- rl 11.26.21
-
-
Field Summary
Fields Modifier and Type Field Description protected com.tangosol.config.expression.Expression<Integer>m_threadCountThe number of threads;-
Fields inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorWithFactoryBuilder
m_bldr
-
Fields inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder
m_name
-
-
Constructor Summary
Constructors Constructor Description FixedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringdescription(int cThreadCount, ThreadFactory factory)Creates the description for this executor.NamedExecutorServicerealize(com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader, com.tangosol.coherence.config.ParameterList listParameters)voidsetThreadCount(com.tangosol.config.expression.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
setInstanceBuilder
-
Methods inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder
register, setName
-
-
-
-
Field Detail
-
m_threadCount
protected com.tangosol.config.expression.Expression<Integer> m_threadCount
The number of threads;
-
-
Method Detail
-
realize
public NamedExecutorService realize(com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader, com.tangosol.coherence.config.ParameterList listParameters)
-
setThreadCount
@Injectable("thread-count") public void setThreadCount(com.tangosol.config.expression.Expression<Integer> threadCount)Set the number of threads to be used by this executor.- Parameters:
threadCount- the number of threads to be used by this executor
-
description
protected String description(int cThreadCount, ThreadFactory factory)
Creates the description for this executor.- Parameters:
factory- theThreadFactory, if any- Returns:
- the description for this executor
-
-