Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal.services
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
`HeartbeatImpl()`

Method Summary
`void` | `begin()` Begins a new Heartbeat.
`void` | `defer(java.lang.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(java.lang.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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.