package com.liquidnet.common.mq.constant;

/**
 * @author <a href="mailto:guo_xp@163.com">guoxinpeng</a>
 * @version 1.0 2016/11/18 16:24
 * @projectname repayment
 * @packname com.liquidnet.service.repayment.constant
 */
public class GlobalConstant {

  //处理间隔时间
  //mils
  public final static int INTERVAL_MILS = 0;

  //consumer失败后等待时间(mils)
  public static final int ONE_SECOND = 1 * 1000;

  //异常sleep时间(mils)
  public static final int ONE_MINUTE = 1 * 60 * 1000;
  //MQ消息retry时间
  public static final int RETRY_TIME_INTERVAL = ONE_MINUTE;
  //MQ消息有效时间
  public static final int VALID_TIME = ONE_MINUTE;

  public static final String PRODUCES_JSON="";

  public final static String STREAM_DATA_NAME = "streamData";

  public static final int LOOKUP_TIMES = 10;


  public static final String JSON = "JSON";
  public static final String XML = "XML";

  // resttemplate 相关
  public static String CONTENT_TYPE = "Content-Type";
  public static String APPLICATION_XML = "application/xml";

  // global id 相关

  // 字符编码相关
  public static String ENCODING_UTF8 = "UTF-8";

  public static Long ZERO = 0L;

}
