All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.tmq.client.system.producer.config.ProducerConfig Maven / Gradle / Ivy

package com.alibaba.tmq.client.system.producer.config;

import com.alibaba.tmq.common.constants.Constants;


/**
 * 生产者配置
 * @author tianyao.myc
 *
 */
public class ProducerConfig implements Constants {

	/** 生产者ID */
	private String producerId;
	
	/** 本地地址 */
	private String localAddress;
	
	private int clusterId;
	
	private String instanceName = DEFAULT_INSTANCE_NAME;

	public String getProducerId() {
		return producerId;
	}

	public void setProducerId(String producerId) {
		this.producerId = producerId;
	}

	public String getLocalAddress() {
		return localAddress;
	}

	public void setLocalAddress(String localAddress) {
		this.localAddress = localAddress;
	}

	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 "ProducerConfig [producerId=" + producerId + ", localAddress="
				+ localAddress + ", clusterId=" + clusterId + ", instanceName="
				+ instanceName + "]";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy