linwei
2024-02-23 826d219fa22e37d3d6c20f48727b39f244c1ba06
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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;
 
    @Value("${binlog.from.datasource.url}")
    private String fromUrl;
 
    @Value("${binlog.from.datasource.username}")
    private String fromUsername;
 
    @Value("${binlog.from.datasource.password}")
    private String fromPassword;
 
    public static final int consumerThreads = 5;
 
    public static final long queueSleep = 1000;
 
}