Package org.elasticsearch.action
Enum Class ThreadingModel
- All Implemented Interfaces:
Serializable
,Comparable<ThreadingModel>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadingModel
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).static ThreadingModel
Returns the enum constant of this class with the specified name.static ThreadingModel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
OPERATION
-
LISTENER
-
OPERATION_LISTENER
-
-
Method Details
-
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
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 nameNullPointerException
- 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
-
removeListener
-
addOperation
-
removeOperation
-
fromId
-