Interface RerouteService

  • All Known Implementing Classes:
    BatchedRerouteService
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface RerouteService
    Asynchronously performs a cluster reroute, updating any shard states and rebalancing the cluster if appropriate.
    • Method Summary

      Modifier and Type Method Description
      void reroute​(java.lang.String reason, Priority priority, ActionListener<java.lang.Void> listener)
      Schedule a cluster reroute.
    • Method Detail

      • reroute

        void reroute​(java.lang.String reason,
                     Priority priority,
                     ActionListener<java.lang.Void> listener)
        Schedule a cluster reroute.
        Parameters:
        priority - the (minimum) priority at which to run this reroute. If there is already a pending reroute at a higher priority then this reroute is batched with the pending one; if there is already a pending reroute at a lower priority then the priority of the pending batch is raised to the given priority.