Annotation for methods that serve as subscribers to the engine's events.
Methods annotated with
@EventSubscription will be called in response to each event specified
by the method's argument. Annotated methods must adhere to the following constraints:
-
Must be
public. -
Must be
void. -
Must have exactly one argument of a type that exactly matches one of
the
ContextEventsub-interfaces.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicates whether the subscription should be asynchronous.
-
Element Details
-
async
boolean asyncIndicates whether the subscription should be asynchronous.- Returns:
- true if the subscription is asynchronous, false otherwise.
- Default:
- false
-