Class CyclicBarrierUtils

java.lang.Object
org.elasticsearch.common.util.concurrent.CyclicBarrierUtils

public class CyclicBarrierUtils extends Object
  • Method Details

    • await

      public static void await(CyclicBarrier cyclicBarrier)
      Await the given CyclicBarrier, failing the test after 10s with an AssertionError. Tests should not wait forever, so a timed wait is always appropriate.