Class FlushRequest

All Implemented Interfaces:
IndicesRequest, IndicesRequest.Replaceable, Writeable, TaskAwareRequest

public class FlushRequest
extends BroadcastRequest<FlushRequest>
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 Requests.flushRequest(String...).

See Also:
Requests.flushRequest(String...), IndicesAdminClient.flush(FlushRequest), FlushResponse
  • Constructor Details

    • FlushRequest

      public FlushRequest​(java.lang.String... indices)
      Constructs a new flush request against one or more indices. If nothing is provided, all indices will be flushed.
    • FlushRequest

      public FlushRequest​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details