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

com.redismq.constant.GlobalConstant Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package com.redismq.constant;

public class GlobalConstant {

    /**
     * 分隔符
     */
    public static String SPLITE = ":";
    /**
     * 分隔符
     */
    public static String V_QUEUE_SPLITE = "$";
    /**
     * 线程数量最大上线
     */
    public static int THREAD_NUM_MAX = 99999;

    /**
     * 延时任务队列阻塞数量
     */
    public static int DELAY_BLOCKING_QUEUE_SIZE = 65536;

    /**
     * 普通队列阻塞数量
     */
    public static int BLOCKING_QUEUE_SIZE = 2048;

    /**
     * boss线程 2个,一个普通队列一个延时队列
     */
    public static int BOSS_NUM = 2;

    /**
     * 客户端过期时间 秒
     */
    public static int CLIENT_EXPIRE = 15;

    /**
     * 客户端循环重平衡时间  秒
     */
    public static int CLIENT_RABALANCE_TIME = 20;

    /**
     * 客户端循环注册心跳时间 秒
     */
    public static int CLIENT_REGISTER_TIME = 6;

    /**
     * 工作线程等待停止的时间
     */
    public static int WORK_THREAD_STOP_WAIT = 60;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy