com.hazelcast.config
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() |
int |
getPoolSize() |
int |
getQueueCapacity() |
boolean |
isStatisticsEnabled() |
ExecutorConfig |
setName(String name) |
ExecutorConfig |
setPoolSize(int poolSize) |
ExecutorConfig |
setQueueCapacity(int queueCapacity) |
ExecutorConfig |
setStatisticsEnabled(boolean statisticsEnabled) |
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)
public int getPoolSize()
public ExecutorConfig setPoolSize(int poolSize)
poolSize
- the poolSize to setpublic int getQueueCapacity()
public ExecutorConfig setQueueCapacity(int queueCapacity)
public boolean isStatisticsEnabled()
public ExecutorConfig setStatisticsEnabled(boolean statisticsEnabled)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.