| 限定符和类型 | 方法和说明 |
|---|---|
void |
MultiThingsRegistrySupport.addSupport(ThingType type,
ThingsRegistrySupport support) |
void |
MultiThingsRegistrySupport.removeSupport(ThingType type) |
| 构造器和说明 |
|---|
SimpleThingsRegistrySupport(ThingType thingType,
ConfigStorageManager manager,
ThingMetadataCodec metadataCodec,
java.util.function.Function<Thing,ThingRpcSupport> rpcSupportFactory) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
DeviceThingType |
| 限定符和类型 | 方法和说明 |
|---|---|
default ThingType |
DeviceOperator.getType() |
| 限定符和类型 | 方法和说明 |
|---|---|
default ThingMessage |
ThingMessage.thingId(ThingType thingType,
String thingId)
设置物类型和ID
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DefaultEventMessage |
ThingEventMessage.forThing(ThingType thingType,
String thingId) |
| 限定符和类型 | 方法和说明 |
|---|---|
static DefaultFunctionInvokeMessage |
ThingFunctionInvokeMessage.forThing(ThingType thingType,
String deviceId) |
| 限定符和类型 | 方法和说明 |
|---|---|
static DefaultReadPropertyMessage |
ReadThingPropertyMessage.forThing(ThingType thingType,
String deviceId) |
static DefaultReportPropertyMessage |
ThingReportPropertyMessage.forThing(ThingType thingType,
String deviceId) |
| 限定符和类型 | 方法和说明 |
|---|---|
ThingType |
Thing.getType() |
static ThingType |
ThingTypes.lookupOrElse(String typeId,
java.util.function.Function<String,ThingType> orElse) |
static ThingType |
ThingType.of(String id)
根据id创建ThingType,如果ThingType未定义,则创建新的ThingType
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Optional<ThingType> |
ThingTypes.lookup(String typeId) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
DefaultThingsDataManager.computeSupport(ThingType thingType,
java.util.function.Function<ThingsDataManagerSupport,T> supportTFunction,
java.util.function.Supplier<T> undefined) |
reactor.core.publisher.Mono<ThingProperty> |
ThingsDataManagerSupport.getAnyLastProperty(ThingType thingType,
String thingId,
long baseTime)
获取距离基准时间最近的任意一个属性信息
|
reactor.core.publisher.Mono<ThingProperty> |
ThingsDataManagerSupport.getFirstProperty(ThingType thingType,
String thingId)
获取物实例首次上报的任意属性信息
|
reactor.core.publisher.Mono<ThingProperty> |
ThingsDataManager.getFirstProperty(ThingType thingType,
String thingId,
String property)
获取第一次上报的属性
|
reactor.core.publisher.Mono<ThingProperty> |
ThingsDataManagerSupport.getFirstProperty(ThingType thingType,
String thingId,
String property)
获取指定属性首次上报的的信息
|
reactor.core.publisher.Mono<ThingProperty> |
DefaultThingsDataManager.getFirstProperty(ThingType thingType,
String thingId,
String property) |
reactor.core.publisher.Mono<Long> |
ThingsDataManager.getFirstPropertyTime(ThingType thingType,
String thingId)
获取第一次上报数据的时间
|
reactor.core.publisher.Mono<Long> |
DefaultThingsDataManager.getFirstPropertyTime(ThingType thingType,
String thingId) |
reactor.core.publisher.Mono<ThingProperty> |
ThingsDataManager.getLastProperty(ThingType thingType,
String thingId,
String property,
long baseTime)
获取基准时间前最新的属性
|
reactor.core.publisher.Mono<ThingProperty> |
ThingsDataManagerSupport.getLastProperty(ThingType thingType,
String thingId,
String property,
long baseTime)
获取指定属性距离基准时间最近的信息
|
reactor.core.publisher.Mono<ThingProperty> |
DefaultThingsDataManager.getLastProperty(ThingType thingType,
String thingId,
String property,
long baseTime) |
reactor.core.publisher.Mono<Long> |
ThingsDataManager.getLastPropertyTime(ThingType thingType,
String thingId,
long baseTime)
获取最后一次属性变更时间
|
reactor.core.publisher.Mono<Long> |
DefaultThingsDataManager.getLastPropertyTime(ThingType thingType,
String thingId,
long baseTime) |
default reactor.core.publisher.Mono<ThingTemplate> |
ThingsRegistry.getTemplate(ThingType thingType,
String templateId) |
default reactor.core.publisher.Mono<Thing> |
ThingsRegistry.getThing(ThingType thingType,
String thingId) |
default boolean |
ThingType.isSameType(ThingType thingType) |
boolean |
ThingsDataManagerSupport.isSupported(ThingType thingType)
判断是否支持此物类型,只有支持的物类型,后续才会调用
|
default boolean |
ThingsRegistrySupport.isSupported(ThingType thingType) |
static reactor.core.Disposable |
ThingTypes.register(ThingType thingType) |
default reactor.core.publisher.Mono<Thing> |
ThingsRegistry.register(ThingType thingType,
ThingInfo info) |
default reactor.core.publisher.Mono<ThingTemplate> |
ThingsRegistry.register(ThingType thingType,
ThingTemplateInfo templateInfo) |
reactor.core.publisher.Flux<ThingProperty> |
ThingsDataManagerSupport.subscribeProperty(ThingType thingType,
String thingId)
订阅物的实时属性
|
default reactor.core.publisher.Mono<Void> |
ThingsRegistry.unregisterTemplate(ThingType thingType,
String templateId) |
default reactor.core.publisher.Mono<Void> |
ThingsRegistry.unregisterThing(ThingType thingType,
String thingId) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ThingType |
ThingTypes.lookupOrElse(String typeId,
java.util.function.Function<String,ThingType> orElse) |
Copyright © 2019–2022. All rights reserved.