Package com.illumon.iris.db.plot.util
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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description InitializationGate()
-
Method Summary
Modifier and Type Method Description void
createGate()
int
possiblyDecrementInitializationCounter()
int
possiblyIncrementInitializationCounter()
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()
-