IndicesRequest, IndicesRequest.Replaceable, Streamable, Writeable, TaskAwareRequestpublic class FlushRequest extends BroadcastRequest<FlushRequest>
Best created with Requests.flushRequest(String...).
IndicesRequest.ReplaceableTransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>indices| Constructor | Description |
|---|---|
FlushRequest(java.lang.String... indices) |
Constructs a new flush request against one or more indices.
|
| Modifier and Type | Method | 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.
|
getShouldStoreResultindices, indices, indicesOptions, indicesOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic FlushRequest(java.lang.String... indices)
public boolean waitIfOngoing()
public FlushRequest waitIfOngoing(boolean waitIfOngoing)
truepublic boolean force()
public FlushRequest force(boolean force)
public void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class BroadcastRequest<FlushRequest>java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class BroadcastRequest<FlushRequest>java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object