MqResponse.java 1.2 KB
package com.tianbo.util.RabitMq;

import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.Envelope;


public class MqResponse {
    private String consumerTag;
    private Envelope envelope;
    private AMQP.BasicProperties properties;
    private String content;

    public MqResponse(){

    }
    public MqResponse(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, String content) {
        this.consumerTag = consumerTag;
        this.envelope = envelope;
        this.properties = properties;
        this.content = content;
    }

    public String getConsumerTag() {
        return consumerTag;
    }

    public void setConsumerTag(String consumerTag) {
        this.consumerTag = consumerTag;
    }

    public Envelope getEnvelope() {
        return envelope;
    }

    public void setEnvelope(Envelope envelope) {
        this.envelope = envelope;
    }

    public AMQP.BasicProperties getProperties() {
        return properties;
    }

    public void setProperties(AMQP.BasicProperties properties) {
        this.properties = properties;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}