Class SyncedFlushRequest

All Implemented Interfaces:
IndicesRequest, IndicesRequest.Replaceable, Writeable, 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...).

See Also:
Requests.flushRequest(String...), IndicesAdminClient.syncedFlush(SyncedFlushRequest), SyncedFlushResponse
  • 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

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

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object