1 18 package org.apache.activemq.store; 19 20 import java.io.IOException ; 21 22 import javax.jms.JMSException ; 23 24 import org.apache.activemq.broker.ConnectionContext; 25 import org.apache.activemq.command.MessageId; 26 import org.apache.activemq.command.SubscriptionInfo; 27 28 33 public interface TopicReferenceStore extends ReferenceStore, TopicMessageStore { 34 45 public void acknowledge(ConnectionContext context,String clientId,String subscriptionName,MessageId messageId) 46 throws IOException ; 47 48 55 public void deleteSubscription(String clientId,String subscriptionName) throws IOException ; 56 57 69 public void recoverSubscription(String clientId,String subscriptionName,MessageRecoveryListener listener) 70 throws Exception ; 71 72 83 public void recoverNextMessages(String clientId,String subscriptionName,int maxReturned, 84 MessageRecoveryListener listener) throws Exception ; 85 86 92 public void resetBatching(String clientId,String subscriptionName); 93 94 95 102 public int getMessageCount(String clientId,String subscriberName) throws IOException ; 103 104 112 public SubscriptionInfo lookupSubscription(String clientId,String subscriptionName) throws IOException ; 113 114 120 public SubscriptionInfo[] getAllSubscriptions() throws IOException ; 121 122 135 public void addSubsciption(String clientId,String subscriptionName,String selector,boolean retroactive) 136 throws IOException ; 137 } 138 | Popular Tags |