public class ExecutorConfigReadOnly extends ExecutorConfig
DEFAULT_POOL_SIZE, DEFAULT_QUEUE_CAPACITY| Constructor and Description |
|---|
ExecutorConfigReadOnly(ExecutorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
ExecutorConfig |
setName(String name)
Sets the name of the executor task.
|
ExecutorConfig |
setPoolSize(int poolSize)
Sets the number of executor threads per member for the executor.
|
ExecutorConfig |
setQueueCapacity(int queueCapacity)
Sets the queue capacity of the executor task.
|
ExecutorConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Enables or disables statistics gathering on the executor task.
|
getAsReadOnly, getName, getPoolSize, getQueueCapacity, isStatisticsEnabled, toStringpublic ExecutorConfigReadOnly(ExecutorConfig config)
public ExecutorConfig setName(String name)
ExecutorConfigsetName in class ExecutorConfigname - The name of the executor task.public ExecutorConfig setPoolSize(int poolSize)
ExecutorConfigsetPoolSize in class ExecutorConfigpoolSize - The number of executor threads per member for the executor.public ExecutorConfig setQueueCapacity(int queueCapacity)
ExecutorConfigsetQueueCapacity in class ExecutorConfigqueueCapacity - Queue capacity of the executor task. 0 means Integer.MAX_VALUE.public ExecutorConfig setStatisticsEnabled(boolean statisticsEnabled)
ExecutorConfigsetStatisticsEnabled in class ExecutorConfigstatisticsEnabled - True (default) if statistics gathering is enabled on the executor task, false otherwise.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.