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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionCapacity policy that counts tasks per Hazelcast instance node/member, and rejects new ones whenScheduledExecutorConfig.capacityvalue is reachedCapacity policy that counts tasks per partition, and rejects new ones whenScheduledExecutorConfig.capacityvalue is reached.
- 
Method Summary
- 
Enum Constant Details- 
PER_NODECapacity policy that counts tasks per Hazelcast instance node/member, and rejects new ones whenScheduledExecutorConfig.capacityvalue is reached
- 
PER_PARTITIONCapacity policy that counts tasks per partition, and rejects new ones whenScheduledExecutorConfig.capacityvalue 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- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getIdpublic byte getId()
- 
getById
 
-