@Beta public class DurableExecutorConfig extends Object
DurableExecutorService
.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DURABILITY
Durability of Executor
|
static int |
DEFAULT_POOL_SIZE
The number of executor threads per Member for the Executor based on this configuration.
|
static int |
DEFAULT_RING_BUFFER_CAPACITY
Capacity of RingBuffer (per partition)
|
Constructor and Description |
---|
DurableExecutorConfig() |
DurableExecutorConfig(DurableExecutorConfig config) |
DurableExecutorConfig(String name) |
DurableExecutorConfig(String name,
int poolSize,
int durability,
int capacity) |
Modifier and Type | Method and Description |
---|---|
com.hazelcast.config.DurableExecutorConfig.DurableExecutorConfigReadOnly |
getAsReadOnly() |
int |
getCapacity()
Gets the ring buffer capacity of the executor task.
|
int |
getDurability()
Gets the durability of the executor
|
String |
getName()
Gets the name of the executor task.
|
int |
getPoolSize()
Gets the number of executor threads per member for the executor.
|
DurableExecutorConfig |
setCapacity(int capacity)
Sets the ring buffer capacity of the executor task.
|
DurableExecutorConfig |
setDurability(int durability)
Sets the durability of the executor
|
DurableExecutorConfig |
setName(String name)
Sets the name of the executor task.
|
DurableExecutorConfig |
setPoolSize(int poolSize)
Sets the number of executor threads per member for the executor.
|
String |
toString() |
public static final int DEFAULT_POOL_SIZE
public static final int DEFAULT_RING_BUFFER_CAPACITY
public static final int DEFAULT_DURABILITY
public DurableExecutorConfig()
public DurableExecutorConfig(String name)
public DurableExecutorConfig(String name, int poolSize, int durability, int capacity)
public DurableExecutorConfig(DurableExecutorConfig config)
public com.hazelcast.config.DurableExecutorConfig.DurableExecutorConfigReadOnly getAsReadOnly()
public String getName()
public DurableExecutorConfig setName(String name)
name
- The name of the executor task.public int getPoolSize()
public DurableExecutorConfig setPoolSize(int poolSize)
poolSize
- The number of executor threads per member for the executor.public int getDurability()
public DurableExecutorConfig setDurability(int durability)
durability
- the durability of the executorpublic int getCapacity()
public DurableExecutorConfig setCapacity(int capacity)
capacity
- Ring Buffer capacity of the executor task.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.