package com.zc.business.constant; /** * redis Stream 消息队列、组、消费者定义 */ public class RedisStreamConstants { /** * 设备上线 队列、组、消费者定义 */ public static class DeviceOnline { public final static String KEY = "device:online"; public final static String GROUP = "group1"; public final static String CONSUMER = "consumer1"; } /** * 设备离线 队列、组、消费者定义 */ public static class DeviceOffline { public final static String KEY = "device:offline"; public final static String GROUP = "group1"; public final static String CONSUMER = "consumer1"; } /** * 设备事件 队列、组、消费者定义 */ public static class DeviceEvent { public final static String KEY = "device:event"; public final static String GROUP = "group1"; public final static String CONSUMER = "consumer1"; } /** * 设备属性上报 队列、组、消费者定义 */ public static class DevicePropertyReport { public final static String KEY = "device:property:report"; public final static String GROUP = "group1"; public final static String CONSUMER = "consumer1"; } /** * 读取属性回复 队列、组、消费者定义 */ public static class DevicePropertyReadReply { public final static String KEY = "device:property:read:reply"; public final static String GROUP = "group1"; public final static String CONSUMER = "consumer1"; } /** * 写属性回复 队列、组、消费者定义 */ public static class DevicePropertyWriteReply { public final static String KEY = "device:property:write:reply"; public final static String GROUP = "group1"; public final static String CONSUMER = "consumer1"; } /** * 调用功能回复 队列、组、消费者定义 */ public static class DeviceFunctionReply { public final static String KEY = "device:function:reply"; public final static String GROUP = "group1"; public final static String CONSUMER = "consumer1"; } }