Enum WanQueueFullBehavior

java.lang.Object
java.lang.Enum<WanQueueFullBehavior>
com.hazelcast.config.WanQueueFullBehavior
All Implemented Interfaces:
Serializable, Comparable<WanQueueFullBehavior>, java.lang.constant.Constable

public enum WanQueueFullBehavior
extends Enum<WanQueueFullBehavior>
Determines the behavior of WAN replication impl. In case of WAN event queues are full.
  • Enum Constant Details

  • Method Details

    • values

      public static WanQueueFullBehavior[] 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

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

      public int getId()
      Gets the ID for the given WanQueueFullBehavior.

      The reason this ID is used instead of an the ordinal value is that the ordinal value is more prone to changes due to reordering.

      Returns:
      the ID
    • getByType

      public static WanQueueFullBehavior getByType​(int id)
      Returns the WANQueueFullBehavior as an enum.
      Returns:
      the WANQueueFullBehavior as an enum