KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > store > kahadaptor > ConsumerMessageRef


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

14
15 package org.apache.activemq.store.kahadaptor;
16
17 import org.apache.activemq.command.MessageId;
18 import org.apache.activemq.kaha.StoreEntry;
19
20 /**
21  * Holds information for location of message
22  *
23  * @version $Revision: 1.10 $
24  */

25 public class ConsumerMessageRef{
26
27     private MessageId messageId;
28     private StoreEntry messageEntry;
29     private StoreEntry ackEntry;
30     
31     /**
32      * @return the ackEntry
33      */

34     public StoreEntry getAckEntry(){
35         return this.ackEntry;
36     }
37     
38     /**
39      * @param ackEntry the ackEntry to set
40      */

41     public void setAckEntry(StoreEntry ackEntry){
42         this.ackEntry=ackEntry;
43     }
44     
45     /**
46      * @return the messageEntry
47      */

48     public StoreEntry getMessageEntry(){
49         return this.messageEntry;
50     }
51     
52     /**
53      * @param messageEntry the messageEntry to set
54      */

55     public void setMessageEntry(StoreEntry messageEntry){
56         this.messageEntry=messageEntry;
57     }
58
59     
60     /**
61      * @return the messageId
62      */

63     public MessageId getMessageId(){
64         return this.messageId;
65     }
66
67     
68     /**
69      * @param messageId the messageId to set
70      */

71     public void setMessageId(MessageId messageId){
72         this.messageId=messageId;
73     }
74     
75     public String JavaDoc toString() {
76         return "ConsumerMessageRef[" + messageId +"]";
77     }
78
79        
80 }
81
Popular Tags