Package com.iohao.net.framework.communication.eventbus
package com.iohao.net.framework.communication.eventbus
CoreFramework - Communication - Distributed EventBus, the distributed event bus is similar to products such as Guava EventBus, Redis Publish/Subscribe, and MQ.
- Author:
- 渔民小镇
- date:
- 2024-06-06
-
ClassDescriptionEventBus, the relationship between EventBus, the business framework, and the logic server is 1:1:1.The type triggered when an event is publishedEvent listener, triggered conditions: 1. when a subscriber throws an uncaught exception, 2. when an event message has no corresponding subscriber.EventBusMessageEventBusMessage creatorEvent Bus Management DomainEventBusSettingThis annotation is not mandatory, but just for marking.Event bus logic service related informationSubscriber annotation, marks a method as an event subscriber (receives events, processes events), configurable with thread executor strategy and execution priority.Subscriber thread executor selection strategy.Subscriber thread executor selection strategySubscriberSubscriber executioncreate SubscriberInvoke