Enum Class ThreadingModel

<ThreadingModel>
org.elasticsearch.action.ThreadingModel
All Implemented Interfaces:
, <

public enum ThreadingModel extends <ThreadingModel>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.

    < extends <>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
     
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    fromId​(byte id)
     
    byte
    id()
     
     
     
    boolean
    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).
    boolean
    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).
     name)
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.

    , , , , , , , , , ,

    Methods inherited from class java.lang.

    , , , , ,
  • 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  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:
      - if this enum class has no constant with the specified name
      - 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)