mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed dymaic topic
This commit is contained in:
@@ -111,4 +111,4 @@ canal.mq.canalBatchSize = 50
|
|||||||
canal.mq.canalGetTimeout = 100
|
canal.mq.canalGetTimeout = 100
|
||||||
canal.mq.flatMessage = true
|
canal.mq.flatMessage = true
|
||||||
canal.mq.compressionType = none
|
canal.mq.compressionType = none
|
||||||
canal.mq.acks = all
|
canal.mq.acks = all
|
||||||
@@ -45,7 +45,7 @@ canal.instance.filter.black.regex=
|
|||||||
|
|
||||||
# mq config
|
# mq config
|
||||||
canal.mq.topic=example
|
canal.mq.topic=example
|
||||||
# 动态topic, 需mq支持动态创建topic
|
# dynamic topic route by table regex
|
||||||
#canal.mq.dynamicTopic=.*,mytest\\..*,mytest2.user
|
#canal.mq.dynamicTopic=.*,mytest\\..*,mytest2.user
|
||||||
canal.mq.partition=0
|
canal.mq.partition=0
|
||||||
# hash partition config
|
# hash partition config
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ public class CanalMQConfig {
|
|||||||
private Integer partition;
|
private Integer partition;
|
||||||
private Integer partitionsNum;
|
private Integer partitionsNum;
|
||||||
private String partitionHash;
|
private String partitionHash;
|
||||||
private String dynamicTopic;
|
private String dynamicTopic;
|
||||||
|
|
||||||
public String getTopic() {
|
public String getTopic() {
|
||||||
return topic;
|
return topic;
|
||||||
|
|||||||
Reference in New Issue
Block a user