| 程序包 | 说明 |
|---|---|
| com.jn.langx.event | |
| com.jn.langx.event.local |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
EventPublisher<EVENT extends DomainEvent>
1、event publisher 本身不需要进行设计,因为只有调用的地方才能被称为 publisher;
2、这里的 event publisher 只是为了 应对在 一个Java进程内的 将event 调度给 listener的过程;
也只用于在一个虚拟机内部;不作为IPC间使用;
3、 addListener 只有在 EventPublisher接口才有的,EventBus 上不能有,也不该有;
|
interface |
IpcEventBus |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommonEventPublisher |
class |
EventBusStation |
| 限定符和类型 | 方法和说明 |
|---|---|
List<EventBus> |
EventBusSelector.apply(List<EventBus> candidateBuses) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<EventBus> |
EventBusSelector.apply(List<EventBus> candidateBuses) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AsyncEventPublisher |
class |
SimpleEventPublisher |
Copyright © 2022. All rights reserved.