|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface Isolated
Specifies that a call should execute by itself. Agents with only a single
task execute all calls within a single thread of execution. In effect, all
calls are executed in isolation whether or not this annotation is used. The
Isolated
annotation is useful for agents with two or more tasks,
and therefore two or more threads of execution. See Marker
for
examples of restricting the order of execution for agents with multiple
concurrently running tasks. The Isolated
annotation provides
even stricter guarantees. Specifically, a call to a task method annotated
with @Isolated
is executed by itself, starting after all prior
calls have finished, and finishing before any subsequent calls are started.
Only a single thread of execution is active when an isolated task method is
running.
Marker
,
Leading
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |