KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > command > JournalTopicAck


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.activemq.command;
19
20 import org.apache.activemq.util.IntrospectionSupport;
21
22 /**
23  *
24  * @openwire:marshaller code="50"
25  * @version $Revision$
26  */

27 public class JournalTopicAck implements DataStructure {
28     
29     public static final byte DATA_STRUCTURE_TYPE=CommandTypes.JOURNAL_ACK;
30     
31     ActiveMQDestination destination;
32     String JavaDoc clientId;
33     String JavaDoc subscritionName;
34     MessageId messageId;
35     long messageSequenceId;
36     TransactionId transactionId;
37     
38     
39     public byte getDataStructureType() {
40         return DATA_STRUCTURE_TYPE;
41     }
42     
43     /**
44      * @openwire:property version=1
45      */

46     public ActiveMQDestination getDestination() {
47         return destination;
48     }
49     
50     public void setDestination(ActiveMQDestination destination) {
51         this.destination = destination;
52     }
53
54     /**
55      * @openwire:property version=1
56      */

57     public MessageId getMessageId() {
58         return messageId;
59     }
60     
61     public void setMessageId(MessageId messageId) {
62         this.messageId = messageId;
63     }
64
65     /**
66      * @openwire:property version=1
67      */

68     public long getMessageSequenceId() {
69         return messageSequenceId;
70     }
71     
72     public void setMessageSequenceId(long messageSequenceId) {
73         this.messageSequenceId = messageSequenceId;
74     }
75
76     /**
77      * @openwire:property version=1
78      */

79     public String JavaDoc getSubscritionName() {
80         return subscritionName;
81     }
82     
83     public void setSubscritionName(String JavaDoc subscritionName) {
84         this.subscritionName = subscritionName;
85     }
86
87     /**
88      * @openwire:property version=1
89      */

90     public String JavaDoc getClientId() {
91         return clientId;
92     }
93
94     public void setClientId(String JavaDoc clientId) {
95         this.clientId = clientId;
96     }
97
98     /**
99      * @openwire:property version=1
100      */

101     public TransactionId getTransactionId() {
102         return transactionId;
103     }
104
105     public void setTransactionId(TransactionId transaction) {
106         this.transactionId = transaction;
107     }
108     
109     public boolean isMarshallAware() {
110         return false;
111     }
112
113     public String JavaDoc toString() {
114         return IntrospectionSupport.toString(this, JournalTopicAck.class);
115     }
116 }
117
Popular Tags