forklift.connectors.ForkliftConnectorI Maven / Gradle / Ivy
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