|
| 1 | +// Copyright (c) 2007-Present Pivotal Software, Inc. All rights reserved. |
| 2 | +// |
| 3 | +// This software, the RabbitMQ Java client library, is triple-licensed under the |
| 4 | +// Mozilla Public License 1.1 ("MPL"), the GNU General Public License version 2 |
| 5 | +// ("GPL") and the Apache License version 2 ("ASL"). For the MPL, please see |
| 6 | +// LICENSE-MPL-RabbitMQ. For the GPL, please see LICENSE-GPL2. For the ASL, |
| 7 | +// please see LICENSE-APACHE2. |
| 8 | +// |
| 9 | +// This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, |
| 10 | +// either express or implied. See the LICENSE file for specific language governing |
| 11 | +// rights and limitations of this software. |
| 12 | +// |
| 13 | +// If you have any questions regarding licensing, please contact us at |
| 14 | + |
| 15 | + |
| 16 | +package com.rabbitmq.client; |
| 17 | + |
| 18 | +/** |
| 19 | + * |
| 20 | + */ |
| 21 | +public class Return { |
| 22 | + |
| 23 | + private final int replyCode; |
| 24 | + private final String replyText; |
| 25 | + private final String exchange; |
| 26 | + private final String routingKey; |
| 27 | + private final AMQP.BasicProperties properties; |
| 28 | + private final byte[] body; |
| 29 | + |
| 30 | + public Return(int replyCode, String replyText, String exchange, String routingKey, AMQP.BasicProperties properties, byte[] body) { |
| 31 | + this.replyCode = replyCode; |
| 32 | + this.replyText = replyText; |
| 33 | + this.exchange = exchange; |
| 34 | + this.routingKey = routingKey; |
| 35 | + this.properties = properties; |
| 36 | + this.body = body; |
| 37 | + } |
| 38 | + |
| 39 | + public int getReplyCode() { |
| 40 | + return replyCode; |
| 41 | + } |
| 42 | + |
| 43 | + public String getReplyText() { |
| 44 | + return replyText; |
| 45 | + } |
| 46 | + |
| 47 | + public String getExchange() { |
| 48 | + return exchange; |
| 49 | + } |
| 50 | + |
| 51 | + public String getRoutingKey() { |
| 52 | + return routingKey; |
| 53 | + } |
| 54 | + |
| 55 | + public AMQP.BasicProperties getProperties() { |
| 56 | + return properties; |
| 57 | + } |
| 58 | + |
| 59 | + public byte[] getBody() { |
| 60 | + return body; |
| 61 | + } |
| 62 | +} |
0 commit comments