package org.springblade.binlog.constant; import lombok.Data; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; /** * 监听配置信息 * * @author zrj * @since 2024/02/19 **/ @Data @Component public class BinLogConstants { @Value("${binlog.datasource.host}") private String host; @Value("${binlog.datasource.port}") private int port; @Value("${binlog.datasource.username}") private String username; @Value("${binlog.datasource.password}") private String password; @Value("${binlog.db}") private String db; @Value("${binlog.table}") private String table; public static final int consumerThreads = 5; // public static final long queueSleep = 1000; public static final long queueSleep = 200; }