Enum Class ThreadingModel

java.lang.Object
java.lang.Enum<ThreadingModel>
org.elasticsearch.action.ThreadingModel
All Implemented Interfaces:
Serializable, Comparable<ThreadingModel>, Constable

public enum ThreadingModel extends Enum<ThreadingModel>
  • Enum Constant Details

  • Method Details

    • values

      public static ThreadingModel[] 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 ThreadingModel 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
    • id

      public byte id()
    • threadedOperation

      public boolean threadedOperation()
      true if the actual operation the action represents will be executed on a different thread than the calling thread (assuming it will be executed on the same node).
    • threadedListener

      public boolean threadedListener()
      true if the invocation of the action result listener will be executed on a different thread (than the calling thread or an "expensive" thread, like the IO thread).
    • addListener

      public ThreadingModel addListener()
    • removeListener

      public ThreadingModel removeListener()
    • addOperation

      public ThreadingModel addOperation()
    • removeOperation

      public ThreadingModel removeOperation()
    • fromId

      public static ThreadingModel fromId(byte id)