KickJava   Java API By Example, From Geeks To Geeks.

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


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.kaha.StoreEntry;
18
19 /**
20  * Holds information for location of message
21  *
22  * @version $Revision: 1.10 $
23  */

24 public class TopicSubAck{
25
26     private int count =0;
27     private StoreEntry messageEntry;
28
29     /**
30      * @return the count
31      */

32     public int getCount(){
33         return this.count;
34     }
35
36     /**
37      * @param count the count to set
38      */

39     public void setCount(int count){
40         this.count=count;
41     }
42     
43     /**
44      * @return the value of the count after it's decremented
45      */

46     public int decrementCount() {
47         return --count;
48     }
49     
50     /**
51      * @return the value of the count after it's incremented
52      */

53     public int incrementCount() {
54         return ++count;
55     }
56
57     
58     /**
59      * @return the messageEntry
60      */

61     public StoreEntry getMessageEntry(){
62         return this.messageEntry;
63     }
64
65     
66     /**
67      * @param messageEntry the messageEntry to set
68      */

69     public void setMessageEntry(StoreEntry storeEntry){
70         this.messageEntry=storeEntry;
71     }
72
73    
74 }
75
Popular Tags