Package com.hazelcast.config
Enum Class ScheduledExecutorConfig.CapacityPolicy
java.lang.Object
java.lang.Enum<ScheduledExecutorConfig.CapacityPolicy>
com.hazelcast.config.ScheduledExecutorConfig.CapacityPolicy
- All Implemented Interfaces:
Serializable
,Comparable<ScheduledExecutorConfig.CapacityPolicy>
,Constable
- Enclosing class:
- ScheduledExecutorConfig
public static enum ScheduledExecutorConfig.CapacityPolicy
extends Enum<ScheduledExecutorConfig.CapacityPolicy>
Capacity policy options
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCapacity policy that counts tasks per Hazelcast instance node/member, and rejects new ones whenScheduledExecutorConfig.capacity
value is reachedCapacity policy that counts tasks per partition, and rejects new ones whenScheduledExecutorConfig.capacity
value is reached. -
Method Summary
-
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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public byte getId() -
getById
-