Class Flag
java.lang.Object
dev.engine_room.flywheel.impl.task.Flag
A flag that can be raised and lowered in a thread-safe fashion.
Useful when combined with
Useful when combined with
RaisePlan.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Flag
-
Flag
public Flag()
-
-
Method Details
-
raise
public void raise()Raise this flag indicating a key point in execution.
If the flag was already raised, this method does nothing. -
lower
public void lower()Lower this flag that may have been previously raised.
If the flag was never raised, this method does nothing. -
isRaised
public boolean isRaised()Check if this flag is raised.- Returns:
trueif the flag is raised.
-
isLowered
public boolean isLowered()Check if this flag is lowered.- Returns:
trueif the flag is lowered.
-
name
-
toString
-