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

gu.simplemq.mqtt.MessageQueueFactoryImpl Maven / Gradle / Ivy

There is a newer version: 2.4.0-alpha3
Show newest version
package gu.simplemq.mqtt;

import gu.simplemq.BaseMessageQueueFactory;
import gu.simplemq.MQInstanceSupplier;
import gu.simplemq.pool.NamedMQPools;

import static gu.simplemq.mqtt.PropertiesHelper.MHELPER;

/**
 * {@link gu.simplemq.IMessageQueueFactory}接口的MQTT实现类
 * @author guyadong
 *
 */
public final class MessageQueueFactoryImpl extends BaseMessageQueueFactory{
	private final MQInstanceSupplier mqInstanceFactory;
	private final NamedMQPools namedMQPools;
	MessageQueueFactoryImpl() {
		super(MHELPER);
		this.mqInstanceFactory = MqttFactory.MQ_INSTANCE_SUPPLIER;
		namedMQPools = MqttPoolLazys.NAMED_POOLS;
	}

	@Override
	protected NamedMQPools getNamedMQPools() {
		return namedMQPools;
	}

	@Override
	protected MQInstanceSupplier getMqInstanceFactory() {
		return mqInstanceFactory;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy