@Deprecated public interface ClusterNotifier
EventBus| 限定符和类型 | 方法和说明 |
|---|---|
<T> reactor.core.publisher.Flux<T> |
handleNotify(String address)
已过时。
调用此方法开始处理通知,当收到对应消息地址上的消息时,消息会进入Flux下游
|
<T,R> reactor.core.publisher.Mono<Void> |
handleNotify(String address,
java.util.function.Function<T,org.reactivestreams.Publisher<R>> replyHandler)
已过时。
调用此方法开始处理通知并回复处理结果
|
reactor.core.publisher.Mono<Boolean> |
sendNotify(String serverNodeId,
String address,
org.reactivestreams.Publisher<?> payload)
已过时。
发送通知给指定的服务节点
|
<T> reactor.core.publisher.Flux<T> |
sendNotifyAndReceive(String serverNodeId,
String address,
org.reactivestreams.Publisher<?> payload)
已过时。
发送通知给指定的服务节点并等待返回,目标服务必须使用
handleNotify(String, Function)进行监听 |
reactor.core.publisher.Mono<Boolean> sendNotify(String serverNodeId, String address, org.reactivestreams.Publisher<?> payload)
serverNodeId - 服务节点IDaddress - 消息地址payload - 消息内容<T> reactor.core.publisher.Flux<T> sendNotifyAndReceive(String serverNodeId, String address, org.reactivestreams.Publisher<?> payload)
handleNotify(String, Function)进行监听T - 返回值结果类型serverNodeId - 服务节点address - 消息地址payload - 消息内容<T> reactor.core.publisher.Flux<T> handleNotify(String address)
T - 消息类型address - 消息地址<T,R> reactor.core.publisher.Mono<Void> handleNotify(String address, java.util.function.Function<T,org.reactivestreams.Publisher<R>> replyHandler)
T - 消息类型R - 处理结果类型address - 消息地址replyHandler - 处理器Copyright © 2019–2022. All rights reserved.