1 23 24 25 26 package javax.jms; 27 28 import java.io.Serializable ; 29 30 124 125 public interface Session extends Runnable { 126 127 133 134 static final int AUTO_ACKNOWLEDGE = 1; 135 136 150 151 static final int CLIENT_ACKNOWLEDGE = 2; 152 153 160 161 static final int DUPS_OK_ACKNOWLEDGE = 3; 162 163 168 static final int SESSION_TRANSACTED = 0; 169 170 177 178 179 BytesMessage 180 createBytesMessage() throws JMSException ; 181 182 183 191 192 MapMessage 193 createMapMessage() throws JMSException ; 194 195 196 205 206 Message 207 createMessage() throws JMSException ; 208 209 210 217 218 ObjectMessage 219 createObjectMessage() throws JMSException ; 220 221 222 231 232 ObjectMessage 233 createObjectMessage(Serializable object) throws JMSException ; 234 235 236 244 245 StreamMessage 246 createStreamMessage() throws JMSException ; 247 248 249 256 257 TextMessage 258 createTextMessage() throws JMSException ; 259 260 261 270 271 TextMessage 272 createTextMessage(String text) throws JMSException ; 273 274 275 282 283 boolean 284 getTransacted() throws JMSException ; 285 286 301 int 302 getAcknowledgeMode() throws JMSException ; 303 304 305 316 317 void 318 commit() throws JMSException ; 319 320 321 330 331 void 332 rollback() throws JMSException ; 333 334 335 364 365 void 366 close() throws JMSException ; 367 368 369 393 394 void 395 recover() throws JMSException ; 396 397 398 409 410 MessageListener 411 getMessageListener() throws JMSException ; 412 413 414 431 432 void 433 setMessageListener(MessageListener listener) throws JMSException ; 434 435 441 public void run(); 442 443 463 464 MessageProducer 465 createProducer(Destination destination) throws JMSException ; 466 467 468 482 483 MessageConsumer 484 createConsumer(Destination destination) throws JMSException ; 485 486 512 MessageConsumer 513 createConsumer(Destination destination, java.lang.String messageSelector) 514 throws JMSException ; 515 516 517 554 MessageConsumer 555 createConsumer(Destination destination, java.lang.String messageSelector, 556 boolean NoLocal) throws JMSException ; 557 558 559 580 581 Queue 582 createQueue(String queueName) throws JMSException ; 583 584 605 606 Topic 607 createTopic(String topicName) throws JMSException ; 608 609 619 620 621 657 658 TopicSubscriber 659 createDurableSubscriber(Topic topic, 660 String name) throws JMSException ; 661 662 663 705 706 TopicSubscriber 707 createDurableSubscriber(Topic topic, 708 String name, 709 String messageSelector, 710 boolean noLocal) throws JMSException ; 711 712 725 QueueBrowser 726 createBrowser(Queue queue) throws JMSException ; 727 728 729 747 748 QueueBrowser 749 createBrowser(Queue queue, 750 String messageSelector) throws JMSException ; 751 752 753 763 764 TemporaryQueue 765 createTemporaryQueue() throws JMSException ; 766 767 768 778 779 TemporaryTopic 780 createTemporaryTopic() throws JMSException ; 781 782 783 803 804 void 805 unsubscribe(String name) throws JMSException ; 806 807 } 808 | Popular Tags |