1 23 24 package javax.jms; 25 26 81 82 public interface Connection { 83 84 106 107 Session 108 createSession(boolean transacted, 109 int acknowledgeMode) throws JMSException ; 110 111 112 127 String 128 getClientID() throws JMSException ; 129 130 131 172 173 void 174 setClientID(String clientID) throws JMSException ; 175 176 177 186 187 ConnectionMetaData 188 getMetaData() throws JMSException ; 189 190 204 205 ExceptionListener 206 getExceptionListener() throws JMSException ; 207 208 209 234 235 void 236 setExceptionListener(ExceptionListener listener) throws JMSException ; 237 238 247 248 void 249 start() throws JMSException ; 250 251 252 286 287 void 288 stop() throws JMSException ; 289 290 291 339 340 void 341 close() throws JMSException ; 342 343 369 370 ConnectionConsumer 371 createConnectionConsumer(Destination destination, 372 String messageSelector, 373 ServerSessionPool sessionPool, 374 int maxMessages) 375 throws JMSException ; 376 377 378 405 406 ConnectionConsumer 407 createDurableConnectionConsumer(Topic topic, 408 String subscriptionName, 409 String messageSelector, 410 ServerSessionPool sessionPool, 411 int maxMessages) 412 throws JMSException ; 413 } 414 415 | Popular Tags |