rabbitmq(amqp)MQ支持 (#2156)

This commit is contained in:
耐小心
2019-09-16 12:43:02 +08:00
committed by agapple
parent 5ec2087257
commit 79552e0a37
21 changed files with 817 additions and 8 deletions

View File

@@ -33,6 +33,13 @@ public class CanalClientConfig {
// aliyun ak/sk
private String accessKey;
private String secretKey;
// rabbitmq 账号密码
private String username;
private String password;
// rabbitmq vhost
private String vhost = "/";
private Long resourceOwnerId;
// 是否启用消息轨迹
private boolean enableMessageTrace;
// 在使用阿里云商业化mq服务时,如果想使用云上消息轨迹功能,请设置此配置为true
@@ -132,6 +139,38 @@ public class CanalClientConfig {
this.secretKey = secretKey;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getVhost() {
return vhost;
}
public void setVhost(String vhost) {
this.vhost = vhost;
}
public Long getResourceOwnerId() {
return resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
}
public List<CanalAdapter> getCanalAdapters() {
return canalAdapters;
}
@@ -176,7 +215,7 @@ public class CanalClientConfig {
private String instance; // 实例名
private List<Group> groups; // 适配器分组列表
private List<Group> groups; // 适配器分组列表
public String getInstance() {
return instance;