Annotation Interface AtmosphereAnnotation


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface AtmosphereAnnotation
This annotation is scanned by Atmosphere at runtime to determine Processor implementation. Application that wants to define their own annotation can annotate their class with this annotation.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Annotation>
    Return the handled annotation associated with the Processor
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Processing priority.
  • Element Details

    • value

      Class<? extends Annotation> value
      Return the handled annotation associated with the Processor
    • priority

      int priority
      Processing priority. Processors with lower priority run first during annotation scanning. Processors with priority > 0 are deferred until all default-priority (0) processors complete, then executed in order.

      This ensures dependencies between processors are respected. For example, a coordinator processor (priority 100) runs after agent processors (priority 0) so that agent endpoints are registered before the coordinator resolves its fleet.

      Returns:
      the priority, default 0 (immediate processing)
      Default:
      0