public class ExecutorConfig extends Object
IExecutorService
.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_POOL_SIZE
The number of executor threads per Member for the Executor based on this configuration.
|
static int |
DEFAULT_QUEUE_CAPACITY
Capacity of Queue
|
Constructor and Description |
---|
ExecutorConfig() |
ExecutorConfig(ExecutorConfig config) |
ExecutorConfig(String name) |
ExecutorConfig(String name,
int poolSize) |
Modifier and Type | Method and Description |
---|---|
ExecutorConfigReadOnly |
getAsReadOnly() |
String |
getName()
Gets the name of the executor task.
|
int |
getPoolSize()
Gets the number of executor threads per member for the executor.
|
int |
getQueueCapacity()
Gets the queue capacity of the executor task.
|
boolean |
isStatisticsEnabled()
Gets if statistics gathering is enabled or disabled on the executor task.
|
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.
|
String |
toString() |
public static final int DEFAULT_POOL_SIZE
public static final int DEFAULT_QUEUE_CAPACITY
public ExecutorConfig()
public ExecutorConfig(String name)
public ExecutorConfig(String name, int poolSize)
public ExecutorConfig(ExecutorConfig config)
public ExecutorConfigReadOnly getAsReadOnly()
public String getName()
public ExecutorConfig setName(String name)
name
- The name of the executor task.public int getPoolSize()
public ExecutorConfig setPoolSize(int poolSize)
poolSize
- The number of executor threads per member for the executor.public int getQueueCapacity()
public ExecutorConfig setQueueCapacity(int queueCapacity)
queueCapacity
- Queue capacity of the executor task. 0 means Integer.MAX_VALUE.public boolean isStatisticsEnabled()
public ExecutorConfig setStatisticsEnabled(boolean statisticsEnabled)
statisticsEnabled
- True (default) if statistics gathering is enabled on the executor task, false otherwise.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.