Class InitializationGate

java.lang.Object
com.illumon.iris.db.plot.util.InitializationGate
All Implemented Interfaces:
Serializable

public class InitializationGate extends Object implements Serializable
Keeps track of tasks that must be finished before some other tasks can be run.
See Also:
  • Constructor Details

    • InitializationGate

      public InitializationGate()
  • Method Details

    • runAfterOpened

      public void runAfterOpened(Runnable runnable)
      Adds runnable to the list of tasks to run once the gate is open. Just runs the runnable if the gate is already open, e.g. createGate has not been called.
    • createGate

      public void createGate()
    • possiblyIncrementInitializationCounter

      public int possiblyIncrementInitializationCounter()
    • possiblyDecrementInitializationCounter

      public int possiblyDecrementInitializationCounter()