|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Execute
Methods declared with this annotation are executed by one or more background threads.
Execute annotation is applied MUST fulfill all
of the following criteria:
Execute is applied MAY be public,
protected, package private or private.
static.
final.
<beanlets xmlns="http://beanlet.org/schema/beanlet"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://beanlet.org/schema/beanlet http://beanlet.org/schema/beanlet/beanlet_1_0.xsd">
<beanlet name="foo" type="com.acme.Foo">
<execute method="bar" threads="1" loop="false"
interrupt="false" join="false" description=""/>
</beanlet>
</beanlets>
| Optional Element Summary | |
|---|---|
String |
description
Description of the underlying executalbe method. |
boolean |
interrupt
If true, the running threads are interrupted on destroy. |
boolean |
join
If true, the container waits until this component has finished
the runnable method on destroy. |
boolean |
loop
If true, the method is called in a loop. |
int |
threads
Number of threads that call the runnable method concurrently. |
public abstract int threads
public abstract boolean loop
true, the method is called in a loop.
public abstract boolean interrupt
true, the running threads are interrupted on destroy.
public abstract boolean join
true, the container waits until this component has finished
the runnable method on destroy.
public abstract String description
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||