Package com.illumon.iris.db.plot.util
Class InitializationGate
java.lang.Object
com.illumon.iris.db.plot.util.InitializationGate
- All Implemented Interfaces:
Serializable
Keeps track of tasks that must be finished before some other tasks can be run.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
int
void
runAfterOpened
(Runnable runnable) Addsrunnable
to the list of tasks to run once the gate is open.
-
Constructor Details
-
InitializationGate
public InitializationGate()
-
-
Method Details
-
runAfterOpened
Addsrunnable
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()
-