1 16 17 package org.springframework.jms.core; 18 19 import javax.jms.Destination ; 20 import javax.jms.Message ; 21 22 import org.springframework.jms.JmsException; 23 24 43 public interface JmsOperations { 44 45 58 Object execute(SessionCallback action) throws JmsException; 59 60 68 Object execute(ProducerCallback action) throws JmsException; 69 70 71 75 81 void send(MessageCreator messageCreator) throws JmsException; 82 83 90 void send(Destination destination, MessageCreator messageCreator) throws JmsException; 91 92 100 void send(String destinationName, MessageCreator messageCreator) throws JmsException; 101 102 103 107 114 void convertAndSend(Object message) throws JmsException; 115 116 123 void convertAndSend(Destination destination, Object message) throws JmsException; 124 125 133 void convertAndSend(String destinationName, Object message) throws JmsException; 134 135 144 void convertAndSend(Object message, MessagePostProcessor postProcessor) 145 throws JmsException; 146 147 156 void convertAndSend(Destination destination, Object message, MessagePostProcessor postProcessor) 157 throws JmsException; 158 159 169 void convertAndSend(String destinationName, Object message, MessagePostProcessor postProcessor) 170 throws JmsException; 171 172 173 177 186 Message receive() throws JmsException; 187 188 197 Message receive(Destination destination) throws JmsException; 198 199 209 Message receive(String destinationName) throws JmsException; 210 211 222 Message receiveSelected(String messageSelector) throws JmsException; 223 224 235 Message receiveSelected(Destination destination, String messageSelector) throws JmsException; 236 237 249 Message receiveSelected(String destinationName, String messageSelector) throws JmsException; 250 251 252 256 266 Object receiveAndConvert() throws JmsException; 267 268 278 Object receiveAndConvert(Destination destination) throws JmsException; 279 280 291 Object receiveAndConvert(String destinationName) throws JmsException; 292 293 305 Object receiveSelectedAndConvert(String messageSelector) throws JmsException; 306 307 319 Object receiveSelectedAndConvert(Destination destination, String messageSelector) throws JmsException; 320 321 334 Object receiveSelectedAndConvert(String destinationName, String messageSelector) throws JmsException; 335 336 } 337 | Popular Tags |