public class MultiThingsRegistrySupport extends Object implements ThingsRegistrySupport
| 构造器和说明 |
|---|
MultiThingsRegistrySupport() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSupport(ThingType type,
ThingsRegistrySupport support) |
reactor.core.publisher.Mono<ThingTemplate> |
getTemplate(String thingType,
String templateId)
根据物类型获取物模版
|
reactor.core.publisher.Mono<Thing> |
getThing(String thingType,
String thingId)
根据物类型获取物实例
|
boolean |
isSupported(String thingType) |
reactor.core.publisher.Mono<Thing> |
register(String thingType,
ThingInfo info)
注册指定物类型的物实例到注册中心
|
reactor.core.publisher.Mono<ThingTemplate> |
register(String thingType,
ThingTemplateInfo templateInfo)
注册指定物类型的物模版到注册中心
|
void |
removeSupport(ThingType type) |
protected ThingsRegistrySupport |
supportNotFound(String thingType) |
reactor.core.publisher.Mono<Void> |
unregisterTemplate(String thingType,
String templateId)
从注册中心注销指定物类型的物模版,注销后,通过
ThingsRegistry.getTemplate(ThingType, String)将无法获取到物模版 |
reactor.core.publisher.Mono<Void> |
unregisterThing(String thingType,
String thingId)
从注册中心注销指定物类型的物实例,注销后,通过
ThingsRegistry.getThing(ThingType, String)将无法获取到物实例 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSupportedgetTemplate, getThing, register, register, unregisterTemplate, unregisterThingpublic void addSupport(ThingType type, ThingsRegistrySupport support)
public void removeSupport(ThingType type)
protected ThingsRegistrySupport supportNotFound(String thingType)
public final reactor.core.publisher.Mono<Thing> getThing(@Nonnull String thingType, @Nonnull String thingId)
ThingsRegistrygetThing 在接口中 ThingsRegistrythingType - 物类型thingId - 物实例public final reactor.core.publisher.Mono<ThingTemplate> getTemplate(@Nonnull String thingType, @Nonnull String templateId)
ThingsRegistrygetTemplate 在接口中 ThingsRegistrythingType - 物类型templateId - 物模版IDpublic final reactor.core.publisher.Mono<Thing> register(@Nonnull String thingType, @Nonnull ThingInfo info)
ThingsRegistryregister 在接口中 ThingsRegistrythingType - 物类型info - 物实例信息public final reactor.core.publisher.Mono<Void> unregisterThing(@Nonnull String thingType, @Nonnull String thingId)
ThingsRegistryThingsRegistry.getThing(ThingType, String)将无法获取到物实例unregisterThing 在接口中 ThingsRegistrythingType - 物类型thingId - 物IDpublic final reactor.core.publisher.Mono<ThingTemplate> register(@Nonnull String thingType, @Nonnull ThingTemplateInfo templateInfo)
ThingsRegistryregister 在接口中 ThingsRegistrythingType - 物类型templateInfo - 物模版信息public final reactor.core.publisher.Mono<Void> unregisterTemplate(@Nonnull String thingType, @Nonnull String templateId)
ThingsRegistryThingsRegistry.getTemplate(ThingType, String)将无法获取到物模版unregisterTemplate 在接口中 ThingsRegistrythingType - 物类型templateId - 模版IDpublic boolean isSupported(String thingType)
isSupported 在接口中 ThingsRegistrySupportCopyright © 2019–2022. All rights reserved.