- All Implemented Interfaces:
A flush request to flush one or more indices. The flush process of an index basically frees memory from the index by flushing data to the index storage and clearing the internal transaction log. By default, Elasticsearch uses memory heuristics in order to automatically trigger flush operations as required in order to clear memory.
Best created with
Best created with
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
Method SummaryModifier and TypeMethodDescription
()Force flushing, even if one is possibly not needed.
(boolean force)Force flushing, even if one is possibly not needed.
trueiff a flush should block if a another flush operation is already running.
(boolean waitIfOngoing)if set to
truethe flush will block if a another flush operation is already running until the flush can be performed.
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
includeDataStreams, indices, indices, indicesOptions, indicesOptions, timeout, timeout
Methods inherited from class org.elasticsearch.transport.TransportRequest
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
waitIfOngoingpublic boolean waitIfOngoing()Returns
trueiff a flush should block if a another flush operation is already running. Otherwise
waitIfOngoingpublic FlushRequest waitIfOngoing(boolean waitIfOngoing)if set to
truethe flush will block if a another flush operation is already running until the flush can be performed. The default is
forcepublic boolean force()Force flushing, even if one is possibly not needed.
forcepublic FlushRequest force(boolean force)Force flushing, even if one is possibly not needed.
validatepublic ActionRequestValidationException validate()
writeToDescription copied from interface:
toStringpublic String toString()