Class Subscriber

java.lang.Object
com.iohao.net.framework.communication.eventbus.Subscriber

public final class Subscriber extends Object
Represents a single event subscriber method bound to an EventBusSubscriber instance.
Since:
21
Author:
渔民小镇
See Also:
date:
2023-12-24
  • Field Details

    • id

      public final int id
      Unique subscriber ID assigned by the framework.
    • eventBusSubscriber

      public Object eventBusSubscriber
      The subscriber object that contains the annotated method.
    • methodHandle

      public MethodHandle methodHandle
      The method handle for reflective invocation of the subscriber method.
    • order

      public int order
      Execution order (priority)
    • executorSelect

      public ExecutorSelector executorSelect
      Executor selection strategy
    • subscriberInvoke

      public SubscriberInvoke subscriberInvoke
      Subscriber invocation
    • eventBus

      public EventBus eventBus
      EventBus
  • Constructor Details

    • Subscriber

      public Subscriber(int id)
      Create a subscriber with the given unique ID.
      Parameters:
      id - the unique subscriber ID