public class StateFreezeHelper
extends java.lang.Object
Constructor and Description |
---|
StateFreezeHelper(LoggerIfc logger)
Constructs the StateFreezeHelper with a logger for
unexpected errors.
|
Modifier and Type | Method and Description |
---|---|
void |
checkFreezeAndWait()
Checks if the StateFreezeHelper's state is frozen, and
halts the current thread if it is.
|
void |
freeze(Callback freezeCompleted)
Changes the StateFreezeHelper to a "frozen" state.
|
void |
unfreeze()
Changes the StateFreezeHelper to an "unfrozen" state, and
resumes all processing previously halted in
"checkFreezeAndWait()".
|
public StateFreezeHelper(LoggerIfc logger)
logger
- Logger for errors.public void freeze(Callback freezeCompleted)
freezeCompleted
- The callback to notify the
StateManager that the
processing has been frozen.public void unfreeze()
public void checkFreezeAndWait()