Class HeartbeatImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.services.HeartbeatImpl
-
- All Implemented Interfaces:
Heartbeat
public class HeartbeatImpl extends Object implements Heartbeat
-
-
Constructor Summary
Constructors Constructor Description HeartbeatImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 recentHeartbeat.begin()
.
-
-
-
Constructor Detail
-
HeartbeatImpl
public HeartbeatImpl()
-
-
Method Detail
-
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 toHeartbeat.end()
.
-
defer
public void defer(Runnable command)
Description copied from interface:Heartbeat
Adds a new command to the current Heartbeat. The command will be executed byHeartbeat.end()
.- Specified by:
defer
in interfaceHeartbeat
- Parameters:
command
- command to be executed at the end of the heartbeat- See Also:
HeartbeatDeferred
-
end
public void end()
Description copied from interface:Heartbeat
Executes all commands since the most recentHeartbeat.begin()
.
-
-