Class WorkStealingBuilder
- java.lang.Object
-
- com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder<NamedExecutorService>
-
- com.oracle.coherence.concurrent.config.builders.WorkStealingBuilder
-
- All Implemented Interfaces:
com.tangosol.coherence.config.builder.ParameterizedBuilder<NamedExecutorService>
public class WorkStealingBuilder extends AbstractExecutorBuilder<NamedExecutorService>
AParameterizedBuilderfor constructing aNamedExecutorServicewrapper that will construct a work stealing 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_parallelismThe parallelism of the executor.-
Fields inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder
m_name
-
-
Constructor Summary
Constructors Constructor Description WorkStealingBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringdescription(int nParallelism)Creates the description for this executor.NamedExecutorServicerealize(com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader, com.tangosol.coherence.config.ParameterList listParameters)voidsetParallelism(com.tangosol.config.expression.Expression<Integer> parallelism)Set the number of threads to be used by this executor.-
Methods inherited from class com.oracle.coherence.concurrent.config.builders.AbstractExecutorBuilder
register, setName
-
-
-
-
Field Detail
-
m_parallelism
protected com.tangosol.config.expression.Expression<Integer> m_parallelism
The parallelism of the executor.
-
-
Method Detail
-
realize
public NamedExecutorService realize(com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader, com.tangosol.coherence.config.ParameterList listParameters)
-
setParallelism
@Injectable("parallelism") public void setParallelism(com.tangosol.config.expression.Expression<Integer> parallelism)Set the number of threads to be used by this executor.- Parameters:
parallelism- the parallelism of this executor
-
description
protected String description(int nParallelism)
Creates the description for this executor.- Parameters:
nParallelism- the parallelism for the executor- Returns:
- the description for this executor
-
-