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
  • Enum Constant Details

    • PER_NODE

      public static final ScheduledExecutorConfig.CapacityPolicy PER_NODE
      Capacity policy that counts tasks per Hazelcast instance node/member, and rejects new ones when ScheduledExecutorConfig.capacity value is reached
    • PER_PARTITION

      public static final ScheduledExecutorConfig.CapacityPolicy PER_PARTITION
      Capacity policy that counts tasks per partition, and rejects new ones when ScheduledExecutorConfig.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

      public static ScheduledExecutorConfig.CapacityPolicy[] 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

      public static ScheduledExecutorConfig.CapacityPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public byte getId()
    • getById

      public static ScheduledExecutorConfig.CapacityPolicy getById(byte id)