|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface Synchronous
Specifies that a call should execute synchronously. Ordinarily, a call to an
agent method with a void
, Future
, or
AgentCall
return type is executed asynchronously. Annotating the
corresponding task method as @Synchronous
overrides the default
behavior.
Note that the use of synchronous calls can lead to deadlock if two agents are suspended, each awaiting completion of a synchronous call to the other agent, either directly or indirectly.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |