Class FlushRequest

    • Constructor Detail

      • 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 Detail

      • waitIfOngoing

        public boolean waitIfOngoing()
        Returns true iff a flush should block if a another flush operation is already running. Otherwise false
      • waitIfOngoing

        public 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. The default is true
      • force

        public boolean force()
        Force flushing, even if one is possibly not needed.
      • force

        public FlushRequest force​(boolean force)
        Force flushing, even if one is possibly not needed.
      • toString

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