Package org.apache.tapestry5.internal.services

## 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 recent `Heartbeat.begin()`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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 to `Heartbeat.end()`.
      Specified by:
        `begin` 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 `Heartbeat.end()`.
      Specified by:
        `defer` in interface `Heartbeat`
      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 recent `Heartbeat.begin()`.
      Specified by:
        `end` in interface `Heartbeat`