Class SyncedFlushRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.broadcast.BroadcastRequest<SyncedFlushRequest>
org.elasticsearch.action.admin.indices.flush.SyncedFlushRequest
- All Implemented Interfaces:
IndicesRequest
,IndicesRequest.Replaceable
,Writeable
,org.elasticsearch.common.util.concurrent.RefCounted
,TaskAwareRequest
public class SyncedFlushRequest extends BroadcastRequest<SyncedFlushRequest>
A synced flush request to sync flush one or more indices. The synced flush process of an index performs a flush
and writes the same sync id to primary and all copies.
Best created with Requests.syncedFlushRequest(String...)
.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.Replaceable
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
indices
-
Constructor Summary
Constructors Constructor Description SyncedFlushRequest(java.lang.String... indices)
Constructs a new synced flush request against one or more indices.SyncedFlushRequest(StreamInput in)
-
Method Summary
Modifier and Type Method Description java.lang.String
toString()
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
includeDataStreams, indices, indices, indicesOptions, indicesOptions, timeout, timeout, validate, writeTo
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
SyncedFlushRequest
public SyncedFlushRequest(java.lang.String... indices)Constructs a new synced flush request against one or more indices. If nothing is provided, all indices will be sync flushed. -
SyncedFlushRequest
- Throws:
java.io.IOException
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classTransportRequest
-