Class Subscriber
java.lang.Object
com.iohao.net.framework.communication.eventbus.Subscriber
Represents a single event subscriber method bound to an
EventBusSubscriber instance.- Since:
- 21
- Author:
- 渔民小镇
- See Also:
- date:
- 2023-12-24
-
Field Summary
FieldsModifier and TypeFieldDescriptionEventBusThe subscriber object that contains the annotated method.Executor selection strategyfinal intUnique subscriber ID assigned by the framework.The method handle for reflective invocation of the subscriber method.intExecution order (priority)Subscriber invocation -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
public final int idUnique subscriber ID assigned by the framework. -
eventBusSubscriber
The subscriber object that contains the annotated method. -
methodHandle
The method handle for reflective invocation of the subscriber method. -
order
public int orderExecution order (priority) -
executorSelect
Executor selection strategy -
subscriberInvoke
Subscriber invocation -
eventBus
EventBus
-
-
Constructor Details
-
Subscriber
public Subscriber(int id) Create a subscriber with the given unique ID.- Parameters:
id- the unique subscriber ID
-