com.alibaba.tmq.client.system.consumer.config.ConsumerConfig Maven / Gradle / Ivy
package com.alibaba.tmq.client.system.consumer.config;
import com.alibaba.tmq.common.constants.Constants;
/**
* 消费者配置
* @author tianyao.myc
*
*/
public class ConsumerConfig implements Constants {
/** 消费者ID */
private String consumerId;
/** 发布订阅主题 */
private String topic;
/** 消息类型 */
private String tag;
private int clusterId;
private String instanceName = DEFAULT_INSTANCE_NAME;
public String getConsumerId() {
return consumerId;
}
public void setConsumerId(String consumerId) {
this.consumerId = consumerId;
}
public String getTopic() {
return topic;
}
public void setTopic(String topic) {
this.topic = topic;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public int getClusterId() {
return clusterId;
}
public void setClusterId(int clusterId) {
this.clusterId = clusterId;
}
public String getInstanceName() {
return instanceName;
}
public void setInstanceName(String instanceName) {
this.instanceName = instanceName;
}
@Override
public String toString() {
return "ConsumerConfig [consumerId=" + consumerId + ", topic=" + topic
+ ", tag=" + tag + ", clusterId=" + clusterId
+ ", instanceName=" + instanceName + "]";
}
}