济菏高速数据中心代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.2 KiB

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";
}
}