org.squirrelframework.foundation.component.impl
Class HeartbeatImpl
java.lang.Object
org.squirrelframework.foundation.component.impl.HeartbeatImpl
- All Implemented Interfaces:
- Heartbeat, SquirrelComponent
public class HeartbeatImpl
- extends Object
- implements Heartbeat, SquirrelComponent
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeartbeatImpl
public HeartbeatImpl()
begin
public void begin()
- Description copied from interface:
Heartbeat
- Begins a new Heartbeat. Heartbeats nest. Every call to begin() should be matched by a call to
Heartbeat.execute().
- Specified by:
begin in interface Heartbeat
execute
public void execute()
- Description copied from interface:
Heartbeat
- Executes all commands since the most recent
Heartbeat.begin().
- Specified by:
execute in interface Heartbeat
defer
public void defer(Runnable command)
- Description copied from interface:
Heartbeat
- Adds a new command to the current Heartbeat. The command will be executed by
#end().
- Specified by:
defer in interface Heartbeat
- Parameters:
command - command to be executed at the end of the heartbeat
Copyright © 2013-2014. All Rights Reserved.