RedisKeys.java 786 Bytes
package com.viontech.fanxing.commons.constant;

/**
 * .
 *
 * @author 谢明辉
 * @date 2021/7/12
 */

public class RedisKeys {

    public static final String SCHEDULING_TO_BE_EXECUTED_TASK_UNID_SET = "scheduling:toBeExecutedTaskUnidSet";
    public static final String SCHEDULING_TO_BE_TERMINATED_TASK_UNID_SET = "scheduling:toBeTerminatedTaskUnidSet";
    public static final String SCHEDULING_TASK_DATA_MAP = "scheduling:taskDataMap";
    public static final String SCHEDULING_VASERVER_MAP = "scheduling:vaServerMap";
    public static final String SCHEDULING_TASK_VASERVER_MAP = "scheduling:taskVAServerMap";

    public static String getVAServerKeepAliveKey(String devId) {
        return devId == null ? "scheduling:keepalive" : "scheduling:keepalive" + ":" + devId;
    }


}