public class ScheduledExecutorConfigReadOnly extends ScheduledExecutorConfig
Constructor and Description |
---|
ScheduledExecutorConfigReadOnly(ScheduledExecutorConfig config) |
Modifier and Type | Method and Description |
---|---|
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 |
setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
Sets the
MergePolicyConfig for the scheduler. |
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.
|
ScheduledExecutorConfig |
setSplitBrainProtectionName(String splitBrainProtectionName)
Sets the split brain protection name for operations.
|
equals, getCapacity, getClassId, getDurability, getFactoryId, getMergePolicyConfig, getName, getPoolSize, getProvidedMergeTypes, getSplitBrainProtectionName, hashCode, readData, toString, writeData
public ScheduledExecutorConfigReadOnly(ScheduledExecutorConfig config)
public ScheduledExecutorConfig setName(String name)
ScheduledExecutorConfig
setName
in interface NamedConfig
setName
in class ScheduledExecutorConfig
name
- the name of the executor taskpublic ScheduledExecutorConfig setDurability(int durability)
ScheduledExecutorConfig
setDurability
in class ScheduledExecutorConfig
durability
- the durability of the executorpublic ScheduledExecutorConfig setPoolSize(int poolSize)
ScheduledExecutorConfig
setPoolSize
in class ScheduledExecutorConfig
poolSize
- the number of executor threads per member for the executorpublic ScheduledExecutorConfig setCapacity(int capacity)
ScheduledExecutorConfig
setCapacity
in class ScheduledExecutorConfig
capacity
- the capacity of the executorpublic ScheduledExecutorConfig setSplitBrainProtectionName(String splitBrainProtectionName)
ScheduledExecutorConfig
setSplitBrainProtectionName
in class ScheduledExecutorConfig
splitBrainProtectionName
- the split brain protection namepublic ScheduledExecutorConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
ScheduledExecutorConfig
MergePolicyConfig
for the scheduler.setMergePolicyConfig
in class ScheduledExecutorConfig
Copyright © 2019 Hazelcast, Inc.. All rights reserved.