Debian Codegraph @

proton-j/src/main/java/org/apache/qpid/proton/amqp/messaging/Modified.java

raw
1 /*
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 */
21
22 package org.apache.qpid.proton.amqp.messaging;
23
24 import java.util.Map;
25
26 import org.apache.qpid.proton.amqp.Symbol;
27 import org.apache.qpid.proton.amqp.transport.DeliveryState;
28
29 public final class Modified implements DeliveryState, Outcome
30 {
31 public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:modified:list");
32
33 private Boolean _deliveryFailed;
34 private Boolean _undeliverableHere;
35 private Map<Symbol, Object> _messageAnnotations;
36
37 public Boolean getDeliveryFailed()
38 {
39 return _deliveryFailed;
40 }
41
42 public void setDeliveryFailed(Boolean deliveryFailed)
43 {
44 _deliveryFailed = deliveryFailed;
45 }
46
47 public Boolean getUndeliverableHere()
48 {
49 return _undeliverableHere;
50 }
51
52 public void setUndeliverableHere(Boolean undeliverableHere)
53 {
54 _undeliverableHere = undeliverableHere;
55 }
56
57 public Map getMessageAnnotations()
58 {
59 return _messageAnnotations;
60 }
61
62 public void setMessageAnnotations(Map messageAnnotations)
63 {
64 _messageAnnotations = messageAnnotations;
65 }
66
67 @Override
68 public String toString()
69 {
70 return "Modified{" +
71 "deliveryFailed=" + _deliveryFailed +
72 ", undeliverableHere=" + _undeliverableHere +
73 ", messageAnnotations=" + _messageAnnotations +
74 '}';
75 }
76
77 @Override
78 public DeliveryStateType getType() {
79 return DeliveryStateType.Modified;
80 }
81 }