1 7 package org.jboss.jms.client; 8 9 import java.io.Serializable ; 10 11 import javax.jms.BytesMessage ; 12 import javax.jms.Destination ; 13 import javax.jms.JMSException ; 14 import javax.jms.MapMessage ; 15 import javax.jms.Message ; 16 import javax.jms.MessageListener ; 17 import javax.jms.ObjectMessage ; 18 import javax.jms.Queue ; 19 import javax.jms.StreamMessage ; 20 import javax.jms.TextMessage ; 21 import javax.transaction.xa.XAResource ; 22 23 29 public interface SessionDelegate 30 extends Lifecycle 31 { 32 34 36 43 void acknowledge(Message message, boolean acknowledge); 44 45 50 void commit() throws JMSException ; 51 52 60 BrowserDelegate createBrowser(Queue queue, String selector) throws JMSException ; 61 62 68 BytesMessage createBytesMessage() throws JMSException ; 69 70 80 ConsumerDelegate createConsumer(Destination destination, String subscription, String selector, boolean noLocal) throws JMSException ; 81 82 88 MapMessage createMapMessage() throws JMSException ; 89 90 96 Message createMessage() throws JMSException ; 97 98 105 ObjectMessage createObjectMessage(Serializable object) throws JMSException ; 106 107 114 ProducerDelegate createProducer(Destination destination) throws JMSException ; 115 116 122 StreamMessage createStreamMessage() throws JMSException ; 123 124 131 Destination createTempDestination(int type) throws JMSException ; 132 133 140 TextMessage createTextMessage(String text) throws JMSException ; 141 142 149 Destination getDestination(String name) throws JMSException ; 150 151 156 XAResource getXAResource(); 157 158 163 void recover() throws JMSException ; 164 165 170 void rollback() throws JMSException ; 171 172 177 void run(); 178 179 185 void setMessageListener(MessageListener listener) throws JMSException ; 186 187 193 void unsubscribe(String name) throws JMSException ; 194 195 } 197 | Popular Tags |