public class FlushRequest extends BroadcastRequest<FlushRequest>
Best created with Requests.flushRequest(String...).
TransportRequest.EmptyIndicesRequest.Replaceableindices| 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, validategetShouldStoreResultgetParentTask, setParentTaskremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateTask, getDescription, 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 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