1 22 package org.jboss.mq.server; 23 24 import javax.jms.Destination ; 25 import javax.jms.JMSException ; 26 import javax.jms.Queue ; 27 import javax.jms.TemporaryQueue ; 28 import javax.jms.TemporaryTopic ; 29 import javax.jms.Topic ; 30 31 import org.jboss.mq.AcknowledgementRequest; 32 import org.jboss.mq.ConnectionToken; 33 import org.jboss.mq.DurableSubscriptionID; 34 import org.jboss.mq.SpyDestination; 35 import org.jboss.mq.SpyMessage; 36 import org.jboss.mq.SpyTopic; 37 import org.jboss.mq.Subscription; 38 import org.jboss.mq.TransactionRequest; 39 40 51 52 public interface JMSServerInterceptor 53 { 54 55 58 public void setNext(JMSServerInterceptor server); 59 60 63 public JMSServerInterceptor getNext(); 64 65 68 public ThreadGroup getThreadGroup(); 69 70 76 public String getID() throws JMSException ; 77 78 85 public TemporaryTopic getTemporaryTopic(ConnectionToken dc) throws JMSException ; 86 87 94 public TemporaryQueue getTemporaryQueue(ConnectionToken dc) throws JMSException ; 95 96 102 public void connectionClosing(ConnectionToken dc) throws JMSException ; 103 104 110 public void checkID(String ID) throws JMSException ; 111 112 119 public void addMessage(ConnectionToken dc, SpyMessage message) throws JMSException ; 120 121 133 public Queue createQueue(ConnectionToken dc, String dest) throws JMSException ; 134 135 147 public Topic createTopic(ConnectionToken dc, String dest) throws JMSException ; 148 149 156 public void deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) throws JMSException ; 157 158 165 public void transact(ConnectionToken dc, TransactionRequest t) throws JMSException ; 166 167 174 public void acknowledge(ConnectionToken dc, AcknowledgementRequest item) throws JMSException ; 175 176 185 public SpyMessage[] browse(ConnectionToken dc, Destination dest, String selector) throws JMSException ; 186 187 196 public SpyMessage receive(ConnectionToken dc, int subscriberId, long wait) throws JMSException ; 197 198 205 public void setEnabled(ConnectionToken dc, boolean enabled) throws JMSException ; 206 207 215 public void unsubscribe(ConnectionToken dc, int subscriptionId) throws JMSException ; 216 217 223 public void destroySubscription(ConnectionToken dc, DurableSubscriptionID id) throws JMSException ; 224 225 233 public String checkUser(String userName, String password) throws JMSException ; 234 235 243 public String authenticate(String userName, String password) throws JMSException ; 244 245 250 void subscribe(org.jboss.mq.ConnectionToken dc, org.jboss.mq.Subscription s) throws JMSException ; 251 252 259 public void ping(ConnectionToken dc, long clientTime) throws JMSException ; 260 261 265 public SpyTopic getDurableTopic(DurableSubscriptionID sub) throws JMSException ; 266 267 272 public Subscription getSubscription(ConnectionToken dc, int subscriberId) throws JMSException ; 273 } 274 | Popular Tags |