Package com.hazelcast.config
Enum ScheduledExecutorConfig.CapacityPolicy
java.lang.Object
java.lang.Enum<ScheduledExecutorConfig.CapacityPolicy>
com.hazelcast.config.ScheduledExecutorConfig.CapacityPolicy
- All Implemented Interfaces:
Serializable
,Comparable<ScheduledExecutorConfig.CapacityPolicy>
,java.lang.constant.Constable
- Enclosing class:
- ScheduledExecutorConfig
public static enum ScheduledExecutorConfig.CapacityPolicy extends Enum<ScheduledExecutorConfig.CapacityPolicy>
Capacity policy options
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description PER_NODE
Capacity policy that counts tasks per Hazelcast instance node/member, and rejects new ones whenScheduledExecutorConfig.capacity
value is reachedPER_PARTITION
Capacity policy that counts tasks per partition, and rejects new ones whenScheduledExecutorConfig.capacity
value is reached. -
Method Summary
Modifier and Type Method Description static ScheduledExecutorConfig.CapacityPolicy
getById(byte id)
byte
getId()
static ScheduledExecutorConfig.CapacityPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScheduledExecutorConfig.CapacityPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PER_NODE
Capacity policy that counts tasks per Hazelcast instance node/member, and rejects new ones whenScheduledExecutorConfig.capacity
value is reached -
PER_PARTITION
Capacity policy that counts tasks per partition, and rejects new ones whenScheduledExecutorConfig.capacity
value is reached. Storage size depends on the partition count in a Hazelcast instance. This policy should not be used often. Avoid using this policy with a small cluster: if the cluster is small it will be hosting more partitions, and therefore tasks, than that of a larger cluster. This policy has no effect when scheduling is done using the OnMember APIs eg.IScheduledExecutorService.scheduleOnMember(Runnable, Member, long, TimeUnit)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public byte getId() -
getById
-