2026-07-29 13:08:49 +08:00
|
|
|
package com.maibu.constant;
|
2026-04-17 10:42:16 +08:00
|
|
|
|
2026-07-29 13:08:49 +08:00
|
|
|
import com.maibu.core.business.DeviceRunParam;
|
2026-04-30 15:25:58 +08:00
|
|
|
import com.maibu.core.enums.ConnectionCloseReason;
|
2026-04-17 10:42:16 +08:00
|
|
|
import io.netty.util.AttributeKey;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
2026-07-29 13:08:49 +08:00
|
|
|
import java.util.concurrent.CompletableFuture;
|
|
|
|
|
|
2026-04-17 10:42:16 +08:00
|
|
|
@Data
|
|
|
|
|
public class Constant {
|
|
|
|
|
|
|
|
|
|
public static final AttributeKey<String> ATT_DEVICE_ID = AttributeKey.valueOf("deviceId");
|
|
|
|
|
|
2026-07-29 13:08:49 +08:00
|
|
|
public static final AttributeKey<CompletableFuture<DeviceRunParam>> READ_CONFIG_KEY =
|
|
|
|
|
AttributeKey.valueOf("READ_CONFIG");
|
|
|
|
|
|
2026-04-30 15:25:58 +08:00
|
|
|
public static final AttributeKey<ConnectionCloseReason> ATT_CLOSE_REASON = AttributeKey.valueOf("closeReason");
|
|
|
|
|
|
|
|
|
|
public static final AttributeKey<String> ATT_ORG_ID = AttributeKey.valueOf("orgId");
|
|
|
|
|
|
|
|
|
|
public static final AttributeKey<String> ATT_SITE_ID = AttributeKey.valueOf("siteId");
|
2026-07-29 13:08:49 +08:00
|
|
|
|
2026-08-19 11:02:52 +08:00
|
|
|
public static final String WheelGainCoefficients = "WheelGainCoefficients";
|
2026-08-05 13:01:59 +08:00
|
|
|
|
2026-08-19 11:02:52 +08:00
|
|
|
public static final String mqttClientPrefix = "common-device-client-";
|
2026-08-07 08:45:43 +08:00
|
|
|
|
|
|
|
|
public static final String mqttHandleKey = "hostHandle";
|
2026-08-19 11:02:52 +08:00
|
|
|
|
|
|
|
|
public static final Long hostOfflineInterval = 10000L; //单位毫秒
|
2026-04-17 10:42:16 +08:00
|
|
|
}
|