org.curjent.agent
Annotation Type Synchronous


@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.



Copyright 2009-2011 Tom Landon
Apache License 2.0