public class InMemoryDeviceRegistry extends Object implements DeviceRegistry
| 构造器和说明 |
|---|
InMemoryDeviceRegistry() |
InMemoryDeviceRegistry(ProtocolSupports supports,
DeviceOperationBroker handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addInterceptor(DeviceMessageSenderInterceptor interceptor) |
static InMemoryDeviceRegistry |
create() |
reactor.core.publisher.Mono<DeviceOperator> |
getDevice(String deviceId) |
reactor.core.publisher.Mono<DeviceProductOperator> |
getProduct(String productId) |
reactor.core.publisher.Mono<DeviceProductOperator> |
getProduct(String productId,
String version) |
reactor.core.publisher.Mono<DeviceOperator> |
register(DeviceInfo deviceInfo) |
reactor.core.publisher.Mono<DeviceProductOperator> |
register(ProductInfo productInfo) |
reactor.core.publisher.Mono<Void> |
unregisterDevice(String deviceId) |
reactor.core.publisher.Mono<Void> |
unregisterProduct(String productId) |
reactor.core.publisher.Mono<Void> |
unregisterProduct(String productId,
String version) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckDeviceStatepublic InMemoryDeviceRegistry()
public InMemoryDeviceRegistry(ProtocolSupports supports, DeviceOperationBroker handler)
public static InMemoryDeviceRegistry create()
public reactor.core.publisher.Mono<DeviceOperator> getDevice(String deviceId)
getDevice 在接口中 DeviceRegistrypublic reactor.core.publisher.Mono<DeviceProductOperator> getProduct(String productId)
getProduct 在接口中 DeviceRegistrypublic reactor.core.publisher.Mono<DeviceProductOperator> getProduct(String productId, String version)
getProduct 在接口中 DeviceRegistrypublic reactor.core.publisher.Mono<DeviceOperator> register(DeviceInfo deviceInfo)
register 在接口中 DeviceRegistrypublic reactor.core.publisher.Mono<DeviceProductOperator> register(ProductInfo productInfo)
register 在接口中 DeviceRegistrypublic reactor.core.publisher.Mono<Void> unregisterDevice(String deviceId)
unregisterDevice 在接口中 DeviceRegistrypublic reactor.core.publisher.Mono<Void> unregisterProduct(String productId)
unregisterProduct 在接口中 DeviceRegistrypublic reactor.core.publisher.Mono<Void> unregisterProduct(String productId, String version)
unregisterProduct 在接口中 DeviceRegistrypublic void addInterceptor(DeviceMessageSenderInterceptor interceptor)
Copyright © 2019–2022. All rights reserved.