public class FlushRequest extends BroadcastOperationRequest<FlushRequest>
Best created with Requests.flushRequest(String...).
TransportRequest.EmptyIndicesRequest.Replaceableindicesheaders| Constructor and Description |
|---|
FlushRequest(ActionRequest originalRequest)
Copy constructor that creates a new flush request that is a copy of the one provided as an argument.
|
FlushRequest(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) |
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) |
indices, indices, indicesOptions, indicesOptions, validatelistenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic FlushRequest(ActionRequest originalRequest)
public FlushRequest(String... indices)
public boolean waitIfOngoing()
public FlushRequest waitIfOngoing(boolean waitIfOngoing)
public boolean force()
public FlushRequest force(boolean force)
public void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BroadcastOperationRequest<FlushRequest>IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BroadcastOperationRequest<FlushRequest>IOExceptionCopyright © 2009–2016. All rights reserved.