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

com.redismq.config.GlobalConfig Maven / Gradle / Ivy

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


import lombok.Data;


@Data
public class GlobalConfig {

    /**
     * 延时队列拉取的头部消息数量
     */
    public int delayQueuePullSize = 100;
    /**
     * 单个虚拟队列消费的锁定时间 有看门狗 如果有服务下线了,并且是突然中断没有释放锁 kill-9  会锁定这个时间内其他服务不能消费
     */
    public int virtualLockTime = 10;
    /**
     * 单个虚拟队列消费看门狗的续期时间
     */
    public int virtualLockWatchDogTime = 8;
    /**
     * 生产者重试次数
     */
    public int producerRetryCount = 3;
    /**
     * 生产者重试间隔
     */
    public int producerRetrySleep = 200;

    /**
     * 队列最大大小
     */
    public int queueMaxSize = 600000;
    /**
     * 是否全局开启事务提交后发送
     */
    public boolean sendAfterCommit = true;
    /**
     * 开启seata事务
     */
    public boolean seataState = false;

    /**
     * 打印核心消费日志
     */
    public boolean printConsumeLog = false;
    /**
     * 打印核心生产日志
     */
    public boolean printProducerLog = true;
    /**
     * 任务执行超时时间 ms
     */
    protected Long taskTimeout = 120 * 1000L;
    /**
     * 任务阻塞等待轮询时间 ms
     */
    protected Long taskWaitTime = 1000L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy