public class FlushRequest extends BroadcastRequest<FlushRequest>
Best created with Requests.flushRequest(String...)
.
TransportRequest.Empty
IndicesRequest.Replaceable
indices
Constructor and Description |
---|
FlushRequest(java.lang.String... indices)
Constructs a new flush request against one or more indices.
|
Modifier and Type | Method and Description |
---|---|
boolean |
force()
Force flushing, even if one is possibly not needed.
|
FlushRequest |
force(boolean force)
Force flushing, even if one is possibly not needed.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String |
toString() |
boolean |
waitIfOngoing()
Returns true iff a flush should block
if a another flush operation is already running.
|
FlushRequest |
waitIfOngoing(boolean waitIfOngoing)
if set to true the flush will block
if a another flush operation is already running until the flush can be performed.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
indices, indices, indicesOptions, indicesOptions, validate
createTask, getDescription
remoteAddress, remoteAddress
public FlushRequest(java.lang.String... indices)
public boolean waitIfOngoing()
public FlushRequest waitIfOngoing(boolean waitIfOngoing)
public boolean force()
public FlushRequest force(boolean force)
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class BroadcastRequest<FlushRequest>
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class BroadcastRequest<FlushRequest>
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object