public interface StreamBusExtension extends DamiBusExtension
| Modifier and Type | Method and Description |
|---|---|
default <D,R> void |
listen(String topic,
int index,
StreamEventHandler<D,R> handler)
监听流事件
|
default <D,R> void |
listen(String topic,
StreamEventHandler<D,R> handler)
监听流事件
|
default <D,R> org.reactivestreams.Publisher<R> |
stream(String topic,
D data)
发送流事件
|
default <D,R> org.reactivestreams.Publisher<R> |
stream(String topic,
D data,
Consumer<org.reactivestreams.Subscriber<? super R>> fallback)
发送流事件
|
busdefault <D,R> org.reactivestreams.Publisher<R> stream(String topic, D data)
default <D,R> org.reactivestreams.Publisher<R> stream(String topic, D data, Consumer<org.reactivestreams.Subscriber<? super R>> fallback)
default <D,R> void listen(String topic, StreamEventHandler<D,R> handler)
topic - 事件主题handler - 流事件处理default <D,R> void listen(String topic, int index, StreamEventHandler<D,R> handler)
topic - 事件主题index - 顺序位handler - 流事件处理Copyright © 2025. All rights reserved.