1 22 package org.jboss.mq.il; 23 import javax.jms.Destination ; 24 import javax.jms.JMSException ; 25 import javax.jms.Queue ; 26 import javax.jms.TemporaryQueue ; 27 import javax.jms.TemporaryTopic ; 28 import javax.jms.Topic ; 29 30 import org.jboss.mq.AcknowledgementRequest; 31 import org.jboss.mq.ConnectionToken; 32 import org.jboss.mq.DurableSubscriptionID; 33 import org.jboss.mq.SpyDestination; 34 import org.jboss.mq.SpyMessage; 35 import org.jboss.mq.SpyTopic; 36 import org.jboss.mq.Subscription; 37 import org.jboss.mq.TransactionRequest; 38 39 48 public interface Invoker 49 { 50 53 public ThreadGroup getThreadGroup(); 54 55 61 public String getID() 62 throws JMSException ; 63 64 71 public TemporaryTopic getTemporaryTopic(ConnectionToken dc) 72 throws JMSException ; 73 74 81 public TemporaryQueue getTemporaryQueue(ConnectionToken dc) 82 throws JMSException ; 83 84 90 public void connectionClosing(ConnectionToken dc) 91 throws JMSException ; 92 93 99 public void checkID(String ID) 100 throws JMSException ; 101 102 109 public void addMessage(ConnectionToken dc, SpyMessage message) 110 throws JMSException ; 111 112 124 public Queue createQueue(ConnectionToken dc, String dest) 125 throws JMSException ; 126 127 139 public Topic createTopic(ConnectionToken dc, String dest) 140 throws JMSException ; 141 142 149 public void deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) 150 throws JMSException ; 151 152 159 public void transact(ConnectionToken dc, TransactionRequest t) 160 throws JMSException ; 161 162 169 public void acknowledge(ConnectionToken dc, AcknowledgementRequest item) 170 throws JMSException ; 171 172 181 public SpyMessage[] browse(ConnectionToken dc, Destination dest, String selector) 182 throws JMSException ; 183 184 193 public SpyMessage receive(ConnectionToken dc, int subscriberId, long wait) 194 throws JMSException ; 195 196 203 public void setEnabled(ConnectionToken dc, boolean enabled) 204 throws JMSException ; 205 206 214 public void unsubscribe(ConnectionToken dc, int subscriptionId) 215 throws JMSException ; 216 217 223 public void destroySubscription(ConnectionToken dc,DurableSubscriptionID id) 224 throws JMSException ; 225 226 234 public String checkUser(String userName, String password) 235 throws JMSException ; 236 237 238 246 public String authenticate(String userName, String password) 247 throws JMSException ; 248 249 250 255 void subscribe(org.jboss.mq.ConnectionToken dc, org.jboss.mq.Subscription s) 256 throws JMSException ; 257 258 265 public void ping(ConnectionToken dc, long clientTime) 266 throws JMSException ; 267 268 272 public SpyTopic getDurableTopic(DurableSubscriptionID sub) 273 throws JMSException ; 274 275 280 public Subscription getSubscription(ConnectionToken dc,int subscriberId) throws JMSException ; 281 282 } 283 | Popular Tags |