All Downloads are FREE. Search and download functionalities are using the official Maven repository.

forklift.connectors.ForkliftConnectorI Maven / Gradle / Ivy

There is a newer version: 3.7
Show newest version
package forklift.connectors;

import forklift.producers.ForkliftProducerI;

import javax.jms.Connection;
import javax.jms.Message;
import javax.jms.MessageConsumer;

public interface ForkliftConnectorI {
    void start() throws ConnectorException;
    void stop() throws ConnectorException;
    Connection getConnection() throws ConnectorException;
//    Session getSession() throws ConnectorException;
    MessageConsumer getQueue(String name) throws ConnectorException;
    MessageConsumer getTopic(String name) throws ConnectorException;
    ForkliftProducerI getQueueProducer(String name);
    ForkliftProducerI getTopicProducer(String name);

    /**
     * Convert a jms message to a forklift message.
     * @param m - the message to process
     * @return - a new ForkliftMessage.
     */
    ForkliftMessage jmsToForklift(Message m);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy