Annotation Type HeartbeatDeferred

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.

See Also:

Copyright © 2003-2012 The Apache Software Foundation.