Annotation Interface Subscribe


@Retention(RUNTIME) @Target(METHOD) public @interface Subscribe
Annotation for subscribing an EventQueue with the annotated method. SelectorComposer.
Since:
6.0.1
Author:
simonpai
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of the EventQueue.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Unsubscribe event-queue automatically when component of composer was detached.
    Event name
    Scope of the EventQueue.
  • Element Details

    • value

      String value
      Name of the EventQueue.
    • scope

      String scope
      Scope of the EventQueue. Available values are EventQueues.DESKTOP, EventQueues.GROUP, EventQueues.SESSION, and EventQueues.APPLICATION. Note: EventQueues.GROUP requires ZK EE.
      Default:
      "desktop"
    • autoUnsubscribe

      boolean autoUnsubscribe
      Unsubscribe event-queue automatically when component of composer was detached.
      Since:
      6.5.1
      Default:
      true
    • eventName

      String eventName
      Event name
      Since:
      7.0.3
      Default:
      ""