public interface Thing extends Configurable, Wrapper
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getId() |
reactor.core.publisher.Mono<? extends ThingMetadata> |
getMetadata()
获取当前物的物模型,如果当前物没有单独配置物模型,则获取模版里的物模型
|
default <V> reactor.core.publisher.Mono<V> |
getSelfConfig(ConfigKey<V> key)
获取自身的配置
|
reactor.core.publisher.Mono<Value> |
getSelfConfig(String key)
获取自身的配置,如果配置不存在则返回
Mono.empty() |
reactor.core.publisher.Mono<Values> |
getSelfConfigs(Collection<String> keys)
获取自身的多个配置,不会返回
Mono.empty(),通过从Values中获取对应的值 |
default reactor.core.publisher.Mono<Values> |
getSelfConfigs(ConfigKey<?>... keys)
获取自身的多个配置
|
default reactor.core.publisher.Mono<Values> |
getSelfConfigs(String... keys)
获取自身的多个配置
|
reactor.core.publisher.Mono<? extends ThingTemplate> |
getTemplate()
获取当前物使用的模版
|
ThingType |
getType() |
reactor.core.publisher.Mono<Void> |
resetMetadata()
重置物的物模型,重置后物模型将使用模版的物模型
|
default ThingRpcSupport |
rpc()
获取RPC操作接口
|
reactor.core.publisher.Mono<Boolean> |
updateMetadata(String metadata)
更新物模型
|
reactor.core.publisher.Mono<Boolean> |
updateMetadata(ThingMetadata metadata)
更新物模型
|
getAndRemoveConfig, getConfig, getConfig, getConfigs, getConfigs, getConfigs, refreshAllConfig, refreshConfig, removeConfig, removeConfigs, removeConfigs, setConfig, setConfig, setConfig, setConfigs, setConfigsisWrapperFor, unwrapString getId()
ThingType getType()
reactor.core.publisher.Mono<? extends ThingTemplate> getTemplate()
reactor.core.publisher.Mono<Void> resetMetadata()
reactor.core.publisher.Mono<? extends ThingMetadata> getMetadata()
reactor.core.publisher.Mono<Boolean> updateMetadata(String metadata)
metadata - 物模型jsonreactor.core.publisher.Mono<Boolean> updateMetadata(ThingMetadata metadata)
metadata - 物模型对象reactor.core.publisher.Mono<Value> getSelfConfig(String key)
Mono.empty()key - 配置Keyreactor.core.publisher.Mono<Values> getSelfConfigs(Collection<String> keys)
Mono.empty(),通过从Values中获取对应的值keys - 配置key列表default reactor.core.publisher.Mono<Values> getSelfConfigs(String... keys)
keys - 配置key列表default <V> reactor.core.publisher.Mono<V> getSelfConfig(ConfigKey<V> key)
key - 配置keyDeviceConfigKeydefault reactor.core.publisher.Mono<Values> getSelfConfigs(ConfigKey<?>... keys)
keys - 配置keyDeviceConfigKeydefault ThingRpcSupport rpc()
Copyright © 2019–2022. All rights reserved.