gu.simplemq.mqtt.MessageQueueFactoryImpl Maven / Gradle / Ivy
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