public class ExecutorConfig extends Object implements DataSerializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CORE_POOL_SIZE |
static int |
DEFAULT_KEEP_ALIVE_SECONDS |
static int |
DEFAULT_MAX_POOL_SIZE |
Constructor and Description |
---|
ExecutorConfig() |
ExecutorConfig(String name) |
ExecutorConfig(String name,
int corePoolSize,
int maxPoolSize,
int keepAliveSeconds) |
Modifier and Type | Method and Description |
---|---|
int |
getCorePoolSize() |
int |
getKeepAliveSeconds() |
int |
getMaxPoolSize() |
String |
getName() |
void |
readData(DataInput in) |
ExecutorConfig |
setCorePoolSize(int corePoolSize) |
ExecutorConfig |
setKeepAliveSeconds(int keepAliveSeconds) |
ExecutorConfig |
setMaxPoolSize(int maxPoolSize) |
ExecutorConfig |
setName(String name) |
String |
toString() |
void |
writeData(DataOutput out) |
public static final int DEFAULT_CORE_POOL_SIZE
public static final int DEFAULT_MAX_POOL_SIZE
public static final int DEFAULT_KEEP_ALIVE_SECONDS
public ExecutorConfig()
public ExecutorConfig(String name)
public ExecutorConfig(String name, int corePoolSize, int maxPoolSize, int keepAliveSeconds)
public String getName()
public ExecutorConfig setName(String name)
public int getCorePoolSize()
public ExecutorConfig setCorePoolSize(int corePoolSize)
corePoolSize
- the corePoolSize to setpublic int getMaxPoolSize()
public ExecutorConfig setMaxPoolSize(int maxPoolSize)
maxPoolSize
- the maxPoolSize to setpublic int getKeepAliveSeconds()
public ExecutorConfig setKeepAliveSeconds(int keepAliveSeconds)
keepAliveSeconds
- the keepAliveSeconds to setpublic void writeData(DataOutput out) throws IOException
writeData
in interface DataSerializable
IOException
public void readData(DataInput in) throws IOException
readData
in interface DataSerializable
IOException
Copyright © 2008-2013 Hazelcast, Inc. All Rights Reserved.