package com.liquidnet.service.constant;

/**
 * Created by Administrator on 2017/2/7.
 */
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;

    // Default ex.text
    public static String RESPONSE_ERROE_UNKNOWN = "System busy, please try again later";
    public static String RESPONSE_ERROE_SYSTEM = "System abnormal";
    public static String RESPONSE_ERROE_BIZ = "Processing failed";
}
