public interface ThingsRegistry
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<ThingTemplate> |
getTemplate(String thingType,
String templateId)
根据物类型获取物模版
|
default reactor.core.publisher.Mono<ThingTemplate> |
getTemplate(ThingType thingType,
String templateId) |
reactor.core.publisher.Mono<Thing> |
getThing(String thingType,
String thingId)
根据物类型获取物实例
|
default reactor.core.publisher.Mono<Thing> |
getThing(ThingType thingType,
String thingId) |
reactor.core.publisher.Mono<Thing> |
register(String thingType,
ThingInfo info)
注册指定物类型的物实例到注册中心
|
reactor.core.publisher.Mono<ThingTemplate> |
register(String thingType,
ThingTemplateInfo templateInfo)
注册指定物类型的物模版到注册中心
|
default reactor.core.publisher.Mono<Thing> |
register(ThingType thingType,
ThingInfo info) |
default reactor.core.publisher.Mono<ThingTemplate> |
register(ThingType thingType,
ThingTemplateInfo templateInfo) |
reactor.core.publisher.Mono<Void> |
unregisterTemplate(String thingType,
String templateId)
从注册中心注销指定物类型的物模版,注销后,通过
getTemplate(ThingType, String)将无法获取到物模版 |
default reactor.core.publisher.Mono<Void> |
unregisterTemplate(ThingType thingType,
String templateId) |
reactor.core.publisher.Mono<Void> |
unregisterThing(String thingType,
String thingId)
从注册中心注销指定物类型的物实例,注销后,通过
getThing(ThingType, String)将无法获取到物实例 |
default reactor.core.publisher.Mono<Void> |
unregisterThing(ThingType thingType,
String thingId) |
reactor.core.publisher.Mono<Thing> getThing(@Nonnull String thingType, @Nonnull String thingId)
thingType - 物类型thingId - 物实例reactor.core.publisher.Mono<ThingTemplate> getTemplate(@Nonnull String thingType, @Nonnull String templateId)
thingType - 物类型templateId - 物模版IDreactor.core.publisher.Mono<Thing> register(@Nonnull String thingType, @Nonnull ThingInfo info)
thingType - 物类型info - 物实例信息reactor.core.publisher.Mono<Void> unregisterThing(@Nonnull String thingType, @Nonnull String thingId)
getThing(ThingType, String)将无法获取到物实例thingType - 物类型thingId - 物IDreactor.core.publisher.Mono<ThingTemplate> register(@Nonnull String thingType, @Nonnull ThingTemplateInfo templateInfo)
thingType - 物类型templateInfo - 物模版信息reactor.core.publisher.Mono<Void> unregisterTemplate(@Nonnull String thingType, @Nonnull String templateId)
getTemplate(ThingType, String)将无法获取到物模版thingType - 物类型templateId - 模版IDdefault reactor.core.publisher.Mono<Thing> getThing(@Nonnull ThingType thingType, @Nonnull String thingId)
default reactor.core.publisher.Mono<ThingTemplate> getTemplate(@Nonnull ThingType thingType, @Nonnull String templateId)
default reactor.core.publisher.Mono<Thing> register(@Nonnull ThingType thingType, @Nonnull ThingInfo info)
default reactor.core.publisher.Mono<Void> unregisterThing(@Nonnull ThingType thingType, @Nonnull String thingId)
default reactor.core.publisher.Mono<ThingTemplate> register(@Nonnull ThingType thingType, @Nonnull ThingTemplateInfo templateInfo)
Copyright © 2019–2022. All rights reserved.