public static enum WriteRequest.RefreshPolicy extends java.lang.Enum<WriteRequest.RefreshPolicy> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant and Description |
---|
IMMEDIATE
Force a refresh as part of this request.
|
NONE
Don't refresh after this request.
|
WAIT_UNTIL
Leave this request open until a refresh has made the contents of this request visible to search.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static WriteRequest.RefreshPolicy |
parse(java.lang.String value)
Parse the string representation of a refresh policy, usually from a request parameter.
|
static WriteRequest.RefreshPolicy |
readFrom(StreamInput in) |
static WriteRequest.RefreshPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WriteRequest.RefreshPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final WriteRequest.RefreshPolicy NONE
public static final WriteRequest.RefreshPolicy IMMEDIATE
public static final WriteRequest.RefreshPolicy WAIT_UNTIL
public static WriteRequest.RefreshPolicy[] values()
for (WriteRequest.RefreshPolicy c : WriteRequest.RefreshPolicy.values()) System.out.println(c);
public static WriteRequest.RefreshPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()
public static WriteRequest.RefreshPolicy parse(java.lang.String value)
public static WriteRequest.RefreshPolicy readFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable