| Package | Description |
|---|---|
| org.noear.dami2.bus | |
| org.noear.dami2.bus.receivable | |
| org.noear.dami2.bus.route | |
| org.noear.dami2.lpc.impl |
| Modifier and Type | Field and Description |
|---|---|
protected EventListener<P> |
EventListenerHolder.listener |
| Modifier and Type | Method and Description |
|---|---|
EventListener<P> |
EventListenerHolder.getListener()
获取监听器
|
| Modifier and Type | Method and Description |
|---|---|
<P> void |
EventListenPipeline.add(EventListener<P> listener)
添加监听
|
<P> void |
EventListenPipeline.add(int index,
EventListener<P> listener)
添加监听(带顺序位)
|
default <P> void |
DamiBus.listen(String topic,
EventListener<P> listener)
监听事件
|
<P> void |
DamiBusImpl.listen(String topic,
int index,
EventListener<P> listener)
监听事件
|
<P> void |
DamiBus.listen(String topic,
int index,
EventListener<P> listener)
监听事件
|
<P> void |
EventListenPipeline.remove(EventListener<P> listener)
移除监听
|
<P> void |
DamiBusImpl.unlisten(String topic,
EventListener<P> listener)
取消监听
|
<P> void |
DamiBus.unlisten(String topic,
EventListener<P> listener)
取消事件监听
|
| Constructor and Description |
|---|
EventListenerHolder(int index,
EventListener<P> listener) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CallEventListener<D,R>
调用监听器
|
interface |
StreamEventListener<D,R>
生成流监听器
|
| Modifier and Type | Method and Description |
|---|---|
<P> void |
EventRouterDefault.add(String topic,
int index,
EventListener<P> listener)
添加监听
|
<P> void |
EventRouter.add(String topic,
int index,
EventListener<P> listener)
添加监听
|
<P> void |
EventRouterPatterned.add(String topic,
int index,
EventListener<P> listener)
添加监听
|
<P> Routing |
RoutingFactory.create(String topic,
int index,
EventListener<P> listener)
创建路由记录
|
<P> void |
EventRouterDefault.remove(String topic,
EventListener<P> listener)
移除监听
|
<P> void |
EventRouter.remove(String topic,
EventListener<P> listener)
移除监听
|
<P> void |
EventRouterPatterned.remove(String topic,
EventListener<P> listener)
移除监听
|
| Constructor and Description |
|---|
Routing(String expr,
int index,
EventListener<P> listener) |
RoutingPath(String expr,
int index,
EventListener<P> listener) |
RoutingTag(String expr,
int index,
EventListener<P> listener) |
| Modifier and Type | Class and Description |
|---|---|
class |
TopicListenRecord<L extends EventListener>
主题监听记录(构建主题与监听器关联)
|
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceMethodEventListener
服务的方法事件监听器
|
Copyright © 2025. All rights reserved.