public interface MessageHandler
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.Disposable |
handleGetDeviceState(String serverId,
java.util.function.Function<org.reactivestreams.Publisher<String>,reactor.core.publisher.Flux<DeviceStateInfo>> stateMapper)
监听获取设备真实状态请求,并响应状态结果
|
reactor.core.publisher.Flux<Message> |
handleSendToDeviceMessage(String serverId)
监听发往设备的指令
|
reactor.core.publisher.Mono<Boolean> |
reply(DeviceMessageReply message)
回复平台下发的指令
|
reactor.core.publisher.Flux<Message> handleSendToDeviceMessage(String serverId)
serverId - 服务ID,在集群时,不同的节点serverId不同 ServerNode#getId()reactor.core.Disposable handleGetDeviceState(String serverId, java.util.function.Function<org.reactivestreams.Publisher<String>,reactor.core.publisher.Flux<DeviceStateInfo>> stateMapper)
serverId - 服务ID,在集群时,不同的节点serverId不同stateMapper - 状态检查器reactor.core.publisher.Mono<Boolean> reply(DeviceMessageReply message)
message - 回复指令Copyright © 2019–2022. All rights reserved.