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()
HeartbeatHeartbeat.end().public void defer(Runnable command)
HeartbeatHeartbeat.end().defer in interface Heartbeatcommand - command to be executed at the end of the heartbeatHeartbeatDeferredpublic void end()
HeartbeatHeartbeat.begin().5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.