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

com.yanyun.log.configuration.properties.KubeMqProperties Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
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 +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy