java.lang.Object
org.elasticsearch.common.util.concurrent.RunOnce
All Implemented Interfaces:
Runnable

public class RunOnce extends Object implements Runnable
Runnable that can only be run one time.
  • Constructor Details

    • RunOnce

      public RunOnce(Runnable delegate)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • hasRun

      public boolean hasRun()
      true if the RunOnce has been executed once.