001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.activemq.store.kahadaptor;
018
019 import org.apache.activemq.kaha.StoreEntry;
020
021 /**
022 * Holds information for location of message
023 *
024 *
025 */
026 public class TopicSubAck {
027
028 private int count;
029 private StoreEntry messageEntry;
030
031 /**
032 * @return the count
033 */
034 public int getCount() {
035 return this.count;
036 }
037
038 /**
039 * @param count the count to set
040 */
041 public void setCount(int count) {
042 this.count = count;
043 }
044
045 /**
046 * @return the value of the count after it's decremented
047 */
048 public int decrementCount() {
049 return --count;
050 }
051
052 /**
053 * @return the value of the count after it's incremented
054 */
055 public int incrementCount() {
056 return ++count;
057 }
058
059 /**
060 * @return the messageEntry
061 */
062 public StoreEntry getMessageEntry() {
063 return this.messageEntry;
064 }
065
066 /**
067 * @param messageEntry the messageEntry to set
068 */
069 public void setMessageEntry(StoreEntry storeEntry) {
070 this.messageEntry = storeEntry;
071 }
072
073 }