public class DefaultThingsRegistry extends Object implements ThingsRegistry
| 构造器和说明 |
|---|
DefaultThingsRegistry() |
DefaultThingsRegistry(Iterable<ThingsRegistrySupport> supports) |
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.Disposable |
addSupport(ThingsRegistrySupport support) |
protected <ARG,R> R |
findSupport(String thingType,
ARG arg,
reactor.function.Function3<ThingsRegistrySupport,String,ARG,R> computer,
java.util.function.Supplier<R> defaultGetter) |
reactor.core.publisher.Mono<ThingTemplate> |
getTemplate(String thingType,
String templateId)
根据物类型获取物模版
|
reactor.core.publisher.Mono<Thing> |
getThing(String thingType,
String thingId)
根据物类型获取物实例
|
reactor.core.publisher.Mono<Thing> |
register(String thingType,
ThingInfo info)
注册指定物类型的物实例到注册中心
|
reactor.core.publisher.Mono<ThingTemplate> |
register(String thingType,
ThingTemplateInfo templateInfo)
注册指定物类型的物模版到注册中心
|
reactor.core.publisher.Mono<Void> |
unregisterTemplate(String thingType,
String thingId)
从注册中心注销指定物类型的物模版,注销后,通过
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, waitgetTemplate, getThing, register, register, unregisterTemplate, unregisterThingpublic DefaultThingsRegistry()
public DefaultThingsRegistry(Iterable<ThingsRegistrySupport> supports)
public reactor.core.Disposable addSupport(ThingsRegistrySupport support)
protected <ARG,R> R findSupport(String thingType, ARG arg, reactor.function.Function3<ThingsRegistrySupport,String,ARG,R> computer, java.util.function.Supplier<R> defaultGetter)
public reactor.core.publisher.Mono<Thing> getThing(@Nonnull String thingType, @Nonnull String thingId)
ThingsRegistrygetThing 在接口中 ThingsRegistrythingType - 物类型thingId - 物实例public reactor.core.publisher.Mono<ThingTemplate> getTemplate(@Nonnull String thingType, @Nonnull String templateId)
ThingsRegistrygetTemplate 在接口中 ThingsRegistrythingType - 物类型templateId - 物模版IDpublic reactor.core.publisher.Mono<Thing> register(@Nonnull String thingType, @Nonnull ThingInfo info)
ThingsRegistryregister 在接口中 ThingsRegistrythingType - 物类型info - 物实例信息public reactor.core.publisher.Mono<Void> unregisterThing(@Nonnull String thingType, @Nonnull String thingId)
ThingsRegistryThingsRegistry.getThing(ThingType, String)将无法获取到物实例unregisterThing 在接口中 ThingsRegistrythingType - 物类型thingId - 物IDpublic reactor.core.publisher.Mono<ThingTemplate> register(@Nonnull String thingType, @Nonnull ThingTemplateInfo templateInfo)
ThingsRegistryregister 在接口中 ThingsRegistrythingType - 物类型templateInfo - 物模版信息public reactor.core.publisher.Mono<Void> unregisterTemplate(@Nonnull String thingType, @Nonnull String thingId)
ThingsRegistryThingsRegistry.getTemplate(ThingType, String)将无法获取到物模版unregisterTemplate 在接口中 ThingsRegistrythingType - 物类型thingId - 模版IDCopyright © 2019–2022. All rights reserved.