1 14 package org.apache.activemq.store; 15 16 import java.io.IOException ; 17 import javax.jms.JMSException ; 18 import org.apache.activemq.broker.ConnectionContext; 19 import org.apache.activemq.command.Message; 20 import org.apache.activemq.command.MessageId; 21 import org.apache.activemq.command.SubscriptionInfo; 22 27 public interface TopicMessageStore extends MessageStore{ 28 39 public void acknowledge(ConnectionContext context,String clientId,String subscriptionName,MessageId messageId) 40 throws IOException ; 41 42 49 public void deleteSubscription(String clientId,String subscriptionName) throws IOException ; 50 51 63 public void recoverSubscription(String clientId,String subscriptionName,MessageRecoveryListener listener) 64 throws Exception ; 65 66 77 public void recoverNextMessages(String clientId,String subscriptionName,int maxReturned, 78 MessageRecoveryListener listener) throws Exception ; 79 80 86 public void resetBatching(String clientId,String subscriptionName); 87 88 89 96 public int getMessageCount(String clientId,String subscriberName) throws IOException ; 97 98 106 public SubscriptionInfo lookupSubscription(String clientId,String subscriptionName) throws IOException ; 107 108 114 public SubscriptionInfo[] getAllSubscriptions() throws IOException ; 115 116 129 public void addSubsciption(String clientId,String subscriptionName,String selector,boolean retroactive) 130 throws IOException ; 131 } 132 | Popular Tags |