Class HeartbeatImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.services.HeartbeatImpl
-
- All Implemented Interfaces:
Heartbeat
public class HeartbeatImpl extends java.lang.Object implements Heartbeat
-
-
Constructor Summary
Constructors Constructor Description HeartbeatImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()Begins a new Heartbeat.voiddefer(java.lang.Runnable command)Adds a new command to the current Heartbeat.voidend()Executes all commands since the most recentHeartbeat.begin().
-
-
-
Constructor Detail
-
HeartbeatImpl
public HeartbeatImpl()
-
-
Method Detail
-
begin
public void begin()
Description copied from interface:HeartbeatBegins a new Heartbeat. Heartbeats nest. Every call to begin() should be matched by a call toHeartbeat.end().
-
defer
public void defer(java.lang.Runnable command)
Description copied from interface:HeartbeatAdds a new command to the current Heartbeat. The command will be executed byHeartbeat.end().- Specified by:
deferin interfaceHeartbeat- Parameters:
command- command to be executed at the end of the heartbeat- See Also:
HeartbeatDeferred
-
end
public void end()
Description copied from interface:HeartbeatExecutes all commands since the most recentHeartbeat.begin().
-
-