public class HeartbeatImpl extends Object implements Heartbeat
Constructor and Description |
---|
HeartbeatImpl() |
Modifier and Type | Method and Description |
---|---|
void |
begin()
Begins a new Heartbeat.
|
void |
defer(Runnable command)
Adds a new command to the current Heartbeat.
|
void |
end()
Executes all commands since the most recent
Heartbeat.begin() . |
public HeartbeatImpl()
public void begin()
Heartbeat
Heartbeat.end()
.public void defer(Runnable command)
Heartbeat
Heartbeat.end()
.defer
in interface Heartbeat
command
- command to be executed at the end of the heartbeatHeartbeatDeferred
public void end()
Heartbeat
Heartbeat.begin()
.${project.version} - Copyright © 2003-2015 The Apache Software Foundation.