com.hazelcast.config
Class ExecutorConfig

java.lang.Object
  extended by com.hazelcast.config.ExecutorConfig
Direct Known Subclasses:
ExecutorConfigReadOnly

public class ExecutorConfig
extends Object

Contains the configuration for an IExecutorService.


Field Summary
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 Summary
ExecutorConfig()
           
ExecutorConfig(ExecutorConfig config)
           
ExecutorConfig(String name)
           
ExecutorConfig(String name, int poolSize)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ExecutorConfig

public ExecutorConfig()

ExecutorConfig

public ExecutorConfig(String name)

ExecutorConfig

public ExecutorConfig(String name,
                      int poolSize)

ExecutorConfig

public ExecutorConfig(ExecutorConfig config)
Method Detail

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.