Annotation Interface Subscribe


@Retention(RUNTIME) @Target(METHOD) public @interface Subscribe
An annotation that is used to indicate that a method is an event listener.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether the listener should be called async.
    short
    The order of the listener.
  • Element Details

    • order

      short order
      The order of the listener.
      Returns:
      the order.
      Default:
      0
    • async

      boolean async
      Whether the listener should be called async.
      Returns:
      whether the listener should be async.
      Default:
      false