Interface RerouteService

All Known Implementing Classes:
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 Details

    • reroute

      void reroute(String reason, Priority priority, ActionListener<ClusterState> listener)
      Schedule a cluster reroute.
      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.