com.yanyun.log.configuration.properties.KubeMqProperties Maven / Gradle / Ivy
package com.yanyun.log.configuration.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "gather.kubemq")
public class KubeMqProperties {
//kubemq的clientId
private String clientId;
//kubemq的连接地址
private String url;
//队列名称
private String queueName;
//一次从队列中最多取回多少消息
private Integer onceReceiveMaxMessage;
//接收消息等待时间
private Integer waitTimeReceiveMessage;
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public Integer getOnceReceiveMaxMessage() {
return onceReceiveMaxMessage;
}
public void setOnceReceiveMaxMessage(Integer onceReceiveMaxMessage) {
this.onceReceiveMaxMessage = onceReceiveMaxMessage;
}
public Integer getWaitTimeReceiveMessage() {
return waitTimeReceiveMessage;
}
public void setWaitTimeReceiveMessage(Integer waitTimeReceiveMessage) {
this.waitTimeReceiveMessage = waitTimeReceiveMessage;
}
@Override
public String toString() {
return "KubeMqProperties{" +
"clientId='" + clientId + '\'' +
", url='" + url + '\'' +
", queueName='" + queueName + '\'' +
", onceReceiveMaxMessage=" + onceReceiveMaxMessage +
", waitTimeReceiveMessage=" + waitTimeReceiveMessage +
'}';
}
}