Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.apache.tapestry5.annotations
Annotation Type HeartbeatDeferred

    @Target(value=METHOD)
    @Retention(value=RUNTIME)
    @Documented
    @UseWith(value={COMPONENT,MIXIN,PAGE})
    public @interface HeartbeatDeferred

Marks a component method as deferred until the end of the `Heartbeat`. This is only allowed on void methods that do not throw exceptions. The invocation is captured and will execute at the end of the current Heartbeat.

This annotation should be used with care, since deferring the invocation can change its semantics. For example, the value stored in instance variables may change between the time the method is invoked and the time it eventually executes. Likewise, runtime exceptions thrown by the method can not be caught by the invoking method.

Annotated methods must return void, and not declare any checked exceptions.

Since:
  5.2.0
See Also:
  `HeartbeatDeferredWorker`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2003-2012 The Apache Software Foundation.