public class ModelCycleExecutor
extends java.lang.Object
implements java.util.concurrent.Executor
Modifier and Type | Class and Description |
---|---|
static class |
ModelCycleExecutor.When |
Constructor and Description |
---|
ModelCycleExecutor(IModel model,
ModelCycleExecutor.When when) |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable command)
will call executeNow
|
void |
executeAfterCycle(java.lang.Runnable command) |
void |
executeASAP(java.lang.Runnable command)
attempts to queue this command to execute ASAP - if the model is mid-cycle,
it will queue to execute after the cycle, otherwise, it will queue to
execute before the next cycle.
|
void |
executeBeforeCycle(java.lang.Runnable command) |
public ModelCycleExecutor(IModel model, ModelCycleExecutor.When when)
public void execute(java.lang.Runnable command)
execute
in interface java.util.concurrent.Executor
public void executeASAP(java.lang.Runnable command)
command
- public void executeBeforeCycle(java.lang.Runnable command)
public void executeAfterCycle(java.lang.Runnable command)