public class FlushRequest extends BroadcastRequest<FlushRequest>
Best created with Requests.flushRequest(String...)
.
TransportRequest.Empty
IndicesRequest.Replaceable
indices
headers
Constructor and Description |
---|
FlushRequest() |
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, validate
createTask, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public FlushRequest()
public 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 Streamable
writeTo
in class BroadcastRequest<FlushRequest>
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BroadcastRequest<FlushRequest>
IOException
Copyright © 2009–2016. All rights reserved.