Enum Class RerouteBehavior

java.lang.Object
java.lang.Enum<RerouteBehavior>
org.elasticsearch.cluster.metadata.RerouteBehavior
All Implemented Interfaces:
Serializable, Comparable<RerouteBehavior>, Constable

public enum RerouteBehavior extends Enum<RerouteBehavior>
Specifies whether reroute() should be called after applying request.
  • Enum Constant Details

    • PERFORM_REROUTE

      public static final RerouteBehavior PERFORM_REROUTE
      Invoke reroute after applying the request.
    • SKIP_REROUTE

      public static final RerouteBehavior SKIP_REROUTE
      Do not reroute; the caller is responsible for ensuring that a follow-up reroute occurs.
  • Method Details

    • values

      public static RerouteBehavior[] 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 RerouteBehavior 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
    • or

      public RerouteBehavior or(RerouteBehavior other)
      Returns PERFORM_REROUTE if either this or other is PERFORM_REROUTE.