com.hazelcast.config
Class ExecutorConfig

java.lang.Object
  extended by com.hazelcast.config.ExecutorConfig
All Implemented Interfaces:
DataSerializable, Serializable

public class ExecutorConfig
extends Object
implements DataSerializable

See Also:
Serialized Form

Field Summary
static int DEFAULT_CORE_POOL_SIZE
           
static int DEFAULT_KEEP_ALIVE_SECONDS
           
static int DEFAULT_MAX_POOL_SIZE
           
 
Constructor Summary
ExecutorConfig()
           
ExecutorConfig(String name)
           
ExecutorConfig(String name, int corePoolSize, int maxPoolSize, int keepAliveSeconds)
           
 
Method Summary
 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)
           
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CORE_POOL_SIZE

public static final int DEFAULT_CORE_POOL_SIZE
See Also:
Constant Field Values

DEFAULT_MAX_POOL_SIZE

public static final int DEFAULT_MAX_POOL_SIZE
See Also:
Constant Field Values

DEFAULT_KEEP_ALIVE_SECONDS

public static final int DEFAULT_KEEP_ALIVE_SECONDS
See Also:
Constant Field Values
Constructor Detail

ExecutorConfig

public ExecutorConfig()

ExecutorConfig

public ExecutorConfig(String name)

ExecutorConfig

public ExecutorConfig(String name,
                      int corePoolSize,
                      int maxPoolSize,
                      int keepAliveSeconds)
Method Detail

getName

public String getName()

setName

public ExecutorConfig setName(String name)

getCorePoolSize

public int getCorePoolSize()
Returns:
the corePoolSize

setCorePoolSize

public ExecutorConfig setCorePoolSize(int corePoolSize)
Parameters:
corePoolSize - the corePoolSize to set

getMaxPoolSize

public int getMaxPoolSize()
Returns:
the maxPoolSize

setMaxPoolSize

public ExecutorConfig setMaxPoolSize(int maxPoolSize)
Parameters:
maxPoolSize - the maxPoolSize to set

getKeepAliveSeconds

public int getKeepAliveSeconds()
Returns:
the keepAliveSeconds

setKeepAliveSeconds

public ExecutorConfig setKeepAliveSeconds(int keepAliveSeconds)
Parameters:
keepAliveSeconds - the keepAliveSeconds to set

writeData

public void writeData(DataOutput out)
               throws IOException
Specified by:
writeData in interface DataSerializable
Throws:
IOException

readData

public void readData(DataInput in)
              throws IOException
Specified by:
readData in interface DataSerializable
Throws:
IOException


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.