All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.schedule.utils.RedisKeyBuildUtils Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package com.arextest.schedule.utils;

import com.arextest.schedule.common.CommonConstant;
import java.nio.charset.StandardCharsets;

public class RedisKeyBuildUtils {

  private RedisKeyBuildUtils() {
  }

  // region Plan Status
  public static byte[] buildStopPlanRedisKey(String planId) {
    return (CommonConstant.STOP_PLAN_REDIS_KEY + planId).getBytes(StandardCharsets.UTF_8);
  }

  public static byte[] buildPlanRunningRedisKey(String planId) {
    return (String.format(CommonConstant.PLAN_RUNNING_KEY_FORMAT, planId)).getBytes(
        StandardCharsets.UTF_8);
  }
  // endregion

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy