com.hp.message.property.MsgProperty Maven / Gradle / Ivy
package com.hp.message.property;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import static com.hp.message.property.MsgProperty.DEFAULT_PREFIX;
/**
* @author 尚肖磊
* @create 2021-06-24 18:12
* @Description: emqx参数配置类
*/
@Data
@ConfigurationProperties(value = DEFAULT_PREFIX)
public class MsgProperty {
public static final String DEFAULT_PREFIX = "hp.iot.msg";
/**
* 消息服务地址 例如:tcp://emqx.hpiot.cn
*/
private String msgHost;
/**
* 连接 超时时间 默认30 单位秒
*/
private Integer connectTimeout = 30;
/**
* 连接 心跳间隔 默认60 单位秒
*/
private Integer keepAliveInterval = 60;
}