|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Heartbeat
Allows for deferred execution of logic, useful when trying to get multiple components to coordinate behavior. A component may add a command to be executed "at the end of the heartbeat". Also, Heartbeats can be nested.
| Method Summary | |
|---|---|
void |
begin()
Begins a new Heartbeat. |
void |
defer(Runnable command)
Adds a new command to the current Heartbeat. |
void |
execute()
Executes all commands since the most recent begin(). |
| Method Detail |
|---|
void begin()
execute().
void execute()
begin().
void defer(Runnable command)
#end().
command - command to be executed at the end of the heartbeat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||