Coverage Report - org.mule.transport.jms.JmsSupport
 
Classes in this File Line Coverage Branch Coverage Complexity
JmsSupport
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.transport.jms;
 8  
 
 9  
 import org.mule.api.endpoint.ImmutableEndpoint;
 10  
 
 11  
 import javax.jms.Connection;
 12  
 import javax.jms.ConnectionFactory;
 13  
 import javax.jms.Destination;
 14  
 import javax.jms.JMSException;
 15  
 import javax.jms.Message;
 16  
 import javax.jms.MessageConsumer;
 17  
 import javax.jms.MessageProducer;
 18  
 import javax.jms.Session;
 19  
 
 20  
 /**
 21  
  * <code>JmsSupport</code> is an interface that provides a polymorphic facade to
 22  
  * the JMS 1.0.2b and 1.1 API specifications. this interface is not intended for
 23  
  * general purpose use and should only be used with the Mule JMS connector.
 24  
  */
 25  
 
 26  
 public interface JmsSupport
 27  
 {
 28  
     Connection createConnection(ConnectionFactory connectionFactory) throws JMSException;
 29  
 
 30  
     Connection createConnection(ConnectionFactory connectionFactory, String username, String password)
 31  
         throws JMSException;
 32  
 
 33  
     Session createSession(Connection connection,
 34  
                           boolean topic,
 35  
                           boolean transacted,
 36  
                           int ackMode,
 37  
                           boolean noLocal) throws JMSException;
 38  
 
 39  
     MessageProducer createProducer(Session session, Destination destination, boolean topic)
 40  
         throws JMSException;
 41  
 
 42  
     MessageConsumer createConsumer(Session session,
 43  
                                    Destination destination,
 44  
                                    String messageSelector,
 45  
                                    boolean noLocal,
 46  
                                    String durableName,
 47  
                                    boolean topic, ImmutableEndpoint endpoint) throws JMSException;
 48  
 
 49  
     MessageConsumer createConsumer(Session session, Destination destination, boolean topic, ImmutableEndpoint endpoint)
 50  
         throws JMSException;
 51  
 
 52  
     Destination createDestination(Session session, String name, boolean topic, ImmutableEndpoint endpoint) throws JMSException;
 53  
 
 54  
     Destination createDestination(Session session, ImmutableEndpoint endpoint) throws JMSException;
 55  
 
 56  
     Destination createTemporaryDestination(Session session, boolean topic) throws JMSException;
 57  
 
 58  
     void send(MessageProducer producer, Message message, boolean topic, ImmutableEndpoint endpoint) throws JMSException;
 59  
 
 60  
     void send(MessageProducer producer,
 61  
               Message message,
 62  
               boolean persistent,
 63  
               int priority,
 64  
               long ttl,
 65  
               boolean topic, ImmutableEndpoint endpoint) throws JMSException;
 66  
 
 67  
     void send(MessageProducer producer, Message message, Destination dest, boolean topic, ImmutableEndpoint endpoint) throws JMSException;
 68  
 
 69  
     void send(MessageProducer producer,
 70  
               Message message,
 71  
               Destination dest,
 72  
               boolean persistent,
 73  
               int priority,
 74  
               long ttl,
 75  
               boolean topic, ImmutableEndpoint endpoint) throws JMSException;
 76  
 }