Package org.elasticsearch.action.support
Enum Class WriteRequest.RefreshPolicy
java.lang.Object
java.lang.Enum<WriteRequest.RefreshPolicy>
org.elasticsearch.action.support.WriteRequest.RefreshPolicy
- All Implemented Interfaces:
- Serializable,- Comparable<WriteRequest.RefreshPolicy>,- Constable,- Writeable
- Enclosing interface:
- WriteRequest<R extends WriteRequest<R>>
public static enum WriteRequest.RefreshPolicy
extends Enum<WriteRequest.RefreshPolicy>
implements Writeable
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionForce a refresh as part of this request.Don't refresh after this request.Leave this request open until a refresh has made the contents of this request visible to search.
- 
Method SummaryModifier and TypeMethodDescriptiongetValue()static WriteRequest.RefreshPolicyParse the string representation of a refresh policy, usually from a request parameter.static WriteRequest.RefreshPolicyreadFrom(StreamInput in)static WriteRequest.RefreshPolicyReturns the enum constant of this class with the specified name.static WriteRequest.RefreshPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwriteTo(StreamOutput out)Write this into the StreamOutput.
- 
Enum Constant Details- 
NONEDon't refresh after this request. The default.
- 
IMMEDIATEForce a refresh as part of this request. This refresh policy does not scale for high indexing or search throughput but is useful to present a consistent view to for indices with very low traffic. And it is wonderful for tests!
- 
WAIT_UNTILLeave this request open until a refresh has made the contents of this request visible to search. This refresh policy is compatible with high indexing and search throughput but it causes the request to wait to reply until a refresh occurs.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
getValue
- 
parseParse the string representation of a refresh policy, usually from a request parameter.
- 
readFrom- Throws:
- IOException
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
 
-