@Target(value=METHOD) @Retention(value=RUNTIME) @Documented @UseWith(value={COMPONENT,MIXIN,PAGE}) public @interface HeartbeatDeferred
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.HeartbeatDeferredWorker
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.