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

com.alibaba.tmq.common.domain.RelationTable Maven / Gradle / Ivy

package com.alibaba.tmq.common.domain;

import java.io.Serializable;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

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

/**
 * Relation映射表
 * @author tianyao.myc
 *
 */
public class RelationTable implements Constants, Serializable {

	private static final long serialVersionUID = 1718695376169329887L;

	/** Relation映射表 */
	private ConcurrentHashMap> relationTable = 
			new ConcurrentHashMap>();
	
	//producer映射表
	private ConcurrentHashMap producerTable = 
			new ConcurrentHashMap();
	
	//consumer映射表
	private ConcurrentHashMap> consumerTable = 
			new ConcurrentHashMap>();
	
	public RelationTable() {
		
	}
	
	public RelationTable(ConcurrentHashMap> relationTable, 
			ConcurrentHashMap producerTable, 
			ConcurrentHashMap> consumerTable) {
		this.relationTable = relationTable;
		this.producerTable = producerTable;
		this.consumerTable = consumerTable;
	}

	public ConcurrentHashMap> getRelationTable() {
		return relationTable;
	}

	public void setRelationTable(
			ConcurrentHashMap> relationTable) {
		this.relationTable = relationTable;
	}

	public ConcurrentHashMap getProducerTable() {
		return producerTable;
	}

	public void setProducerTable(
			ConcurrentHashMap producerTable) {
		this.producerTable = producerTable;
	}

	public ConcurrentHashMap> getConsumerTable() {
		return consumerTable;
	}

	public void setConsumerTable(
			ConcurrentHashMap> consumerTable) {
		this.consumerTable = consumerTable;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy