Package org.elasticsearch.action.bulk
Enum TransportShardBulkAction.ReplicaItemExecutionMode
- java.lang.Object
-
- java.lang.Enum<TransportShardBulkAction.ReplicaItemExecutionMode>
-
- org.elasticsearch.action.bulk.TransportShardBulkAction.ReplicaItemExecutionMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TransportShardBulkAction.ReplicaItemExecutionMode>
,java.lang.constant.Constable
- Enclosing class:
- TransportShardBulkAction
public static enum TransportShardBulkAction.ReplicaItemExecutionMode extends java.lang.Enum<TransportShardBulkAction.ReplicaItemExecutionMode>
Modes for executing item request on replica depending on corresponding primary execution result
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILURE
When primary execution failed after sequence no was generatedNOOP
When primary execution failed before sequence no was generated or primary execution was a noop (only possible when request is originating from pre-6.0 nodes)NORMAL
When primary execution succeeded
-
Method Summary
Modifier and Type Method Description static TransportShardBulkAction.ReplicaItemExecutionMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TransportShardBulkAction.ReplicaItemExecutionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final TransportShardBulkAction.ReplicaItemExecutionMode NORMAL
When primary execution succeeded
-
NOOP
public static final TransportShardBulkAction.ReplicaItemExecutionMode NOOP
When primary execution failed before sequence no was generated or primary execution was a noop (only possible when request is originating from pre-6.0 nodes)
-
FAILURE
public static final TransportShardBulkAction.ReplicaItemExecutionMode FAILURE
When primary execution failed after sequence no was generated
-
-
Method Detail
-
values
public static TransportShardBulkAction.ReplicaItemExecutionMode[] 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 TransportShardBulkAction.ReplicaItemExecutionMode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-