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

gu.simplemq.proton.MQContextImpl Maven / Gradle / Ivy

The newest version!
package gu.simplemq.proton;

import java.util.Properties;

import javax.jms.JMSException;
import javax.jms.Message;

import gu.simplemq.IMessageQueueFactory;
import gu.simplemq.MQPropertiesHelper;
import gu.simplemq.MessageQueueType;
import gu.simplemq.jms.JmsRuntimeContext;

public class MQContextImpl implements JmsRuntimeContext{
	private final ProtonRuntimeContext context = ProtonRuntimeContext.PROTON_CONTEXT;
	
	@Override
	public final MessageQueueType getMessageQueueType() {
		return context.getMessageQueueType();
	}
	@Override
	public final String getClientImplType() {
		return context.getClientImplType();
	}
	@Override
	public MQPropertiesHelper getPropertiesHelper() {
		return context.getPropertiesHelper();
	}
	@Override
	public PooledConnectionFactory createPooledConnectionFactory(Properties properties) {
		return context.createPooledConnectionFactory(properties);
	}
	@Override
	public String destNameOf(Message message) throws JMSException {
		return context.destNameOf(message);
	}
	@Override
	public IMessageQueueFactory getMessageQueueFactory() {
		return context.getMessageQueueFactory();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy