1 17 package javax.jbi.messaging; 18 19 import javax.jbi.servicedesc.ServiceEndpoint; 20 21 import javax.xml.namespace.QName ; 22 23 public interface DeliveryChannel 24 { 25 void close() 26 throws MessagingException; 27 28 MessageExchangeFactory createExchangeFactory(); 29 30 MessageExchangeFactory createExchangeFactory(QName interfaceName); 31 32 MessageExchangeFactory createExchangeFactoryForService(QName serviceName); 33 34 MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint); 35 36 MessageExchange accept() 37 throws MessagingException; 38 39 MessageExchange accept(long timeout) 40 throws MessagingException; 41 42 void send(MessageExchange exchange) 43 throws MessagingException; 44 45 boolean sendSync(MessageExchange exchange) 46 throws MessagingException; 47 48 boolean sendSync(MessageExchange exchange, long timeout) 49 throws MessagingException; 50 } 51 | Popular Tags |