public class ScheduledExecutorConfig extends Object
IScheduledExecutorService
Constructor and Description |
---|
ScheduledExecutorConfig() |
ScheduledExecutorConfig(ScheduledExecutorConfig config) |
ScheduledExecutorConfig(String name) |
ScheduledExecutorConfig(String name,
int durability,
int capacity,
int poolSize) |
Modifier and Type | Method and Description |
---|---|
int |
getCapacity()
Gets the capacity of the executor
|
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.
|
ScheduledExecutorConfig |
setCapacity(int capacity)
Sets the capacity of the executor
The capacity represents the maximum number of tasks that a scheduler can have at any given point in time per partition.
|
ScheduledExecutorConfig |
setDurability(int durability)
Sets the durability of the executor
The durability represents the number of replicas that exist in a cluster for any given partition-owned task.
|
ScheduledExecutorConfig |
setName(String name)
Sets the name of the executor task.
|
ScheduledExecutorConfig |
setPoolSize(int poolSize)
Sets the number of executor threads per member for the executor.
|
String |
toString() |
public ScheduledExecutorConfig()
public ScheduledExecutorConfig(String name)
public ScheduledExecutorConfig(String name, int durability, int capacity, int poolSize)
public ScheduledExecutorConfig(ScheduledExecutorConfig config)
public String getName()
public ScheduledExecutorConfig setName(String name)
name
- The name of the executor task.public int getPoolSize()
public ScheduledExecutorConfig setPoolSize(int poolSize)
poolSize
- The number of executor threads per member for the executor.public int getDurability()
public ScheduledExecutorConfig setDurability(int durability)
durability
- the durability of the executorpublic int getCapacity()
public ScheduledExecutorConfig setCapacity(int capacity)
capacity
- the capacity of the executorCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.