public class DefaultThingsDataManager extends Object implements ThingsDataManager
| 构造器和说明 |
|---|
DefaultThingsDataManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSupport(ThingsDataManagerSupport support) |
<T> T |
computeSupport(ThingType thingType,
java.util.function.Function<ThingsDataManagerSupport,T> supportTFunction,
java.util.function.Supplier<T> undefined) |
reactor.core.publisher.Mono<ThingProperty> |
getFirstProperty(ThingType thingType,
String thingId,
String property)
获取第一次上报的属性
|
reactor.core.publisher.Mono<Long> |
getFirstPropertyTime(ThingType thingType,
String thingId)
获取第一次上报数据的时间
|
reactor.core.publisher.Mono<ThingProperty> |
getLastProperty(ThingType thingType,
String thingId,
String property,
long baseTime)
获取基准时间前最新的属性
|
reactor.core.publisher.Mono<Long> |
getLastPropertyTime(ThingType thingType,
String thingId,
long baseTime)
获取最后一次属性变更时间
|
public void addSupport(ThingsDataManagerSupport support)
public final reactor.core.publisher.Mono<ThingProperty> getLastProperty(ThingType thingType, String thingId, String property, long baseTime)
ThingsDataManagergetLastProperty 在接口中 ThingsDataManagerthingId - 物IDproperty - 属性baseTime - 基准时间public final reactor.core.publisher.Mono<ThingProperty> getFirstProperty(ThingType thingType, String thingId, String property)
ThingsDataManagergetFirstProperty 在接口中 ThingsDataManagerthingId - 物IDproperty - 属性IDpublic reactor.core.publisher.Mono<Long> getLastPropertyTime(ThingType thingType, String thingId, long baseTime)
ThingsDataManagergetLastPropertyTime 在接口中 ThingsDataManagerthingId - 物IDpublic reactor.core.publisher.Mono<Long> getFirstPropertyTime(ThingType thingType, String thingId)
ThingsDataManagergetFirstPropertyTime 在接口中 ThingsDataManagerthingId - 物IDpublic <T> T computeSupport(ThingType thingType, java.util.function.Function<ThingsDataManagerSupport,T> supportTFunction, java.util.function.Supplier<T> undefined)
Copyright © 2019–2022. All rights reserved.