fixed dymaic topic

This commit is contained in:
agapple
2018-12-28 18:35:50 +08:00
parent f72ac9a3bb
commit 14ba358525
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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;