public class ScheduledExecutorConfig extends Object implements IdentifiedDataSerializable
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 |
|---|---|
boolean |
equals(Object o) |
int |
getCapacity()
Gets the capacity of the executor
|
int |
getDurability()
Gets the durability of the executor
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
String |
getName()
Gets the name of the executor task.
|
int |
getPoolSize()
Gets the number of executor threads per member for the executor.
|
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
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() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
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 taskpublic int getPoolSize()
public ScheduledExecutorConfig setPoolSize(int poolSize)
poolSize - the number of executor threads per member for the executorpublic 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 executorpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.