com.hazelcast.config
Class ExecutorConfig
java.lang.Object
com.hazelcast.config.ExecutorConfig
- Direct Known Subclasses:
- ExecutorConfigReadOnly
public class ExecutorConfig
- extends Object
Contains the configuration for an IExecutorService
.
DEFAULT_POOL_SIZE
public static final int DEFAULT_POOL_SIZE
- The number of executor threads per Member for the Executor based on this configuration.
- See Also:
- Constant Field Values
DEFAULT_QUEUE_CAPACITY
public static final int DEFAULT_QUEUE_CAPACITY
- Capacity of Queue
- See Also:
- Constant Field Values
ExecutorConfig
public ExecutorConfig()
ExecutorConfig
public ExecutorConfig(String name)
ExecutorConfig
public ExecutorConfig(String name,
int poolSize)
ExecutorConfig
public ExecutorConfig(ExecutorConfig config)
getAsReadOnly
public ExecutorConfigReadOnly getAsReadOnly()
getName
public String getName()
setName
public ExecutorConfig setName(String name)
getPoolSize
public int getPoolSize()
- Returns:
- the poolSize
setPoolSize
public ExecutorConfig setPoolSize(int poolSize)
- Parameters:
poolSize
- the poolSize to set
getQueueCapacity
public int getQueueCapacity()
setQueueCapacity
public ExecutorConfig setQueueCapacity(int queueCapacity)
isStatisticsEnabled
public boolean isStatisticsEnabled()
setStatisticsEnabled
public ExecutorConfig setStatisticsEnabled(boolean statisticsEnabled)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.