001/**
002 * Copyright (c) 2015-2022, Michael Yang 杨福海 (fuhai999@gmail.com).
003 * <p>
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * <p>
008 * http://www.apache.org/licenses/LICENSE-2.0
009 * <p>
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package io.jboot.components.mq.rocketmq;
017
018import io.jboot.app.config.annotation.ConfigModel;
019
020import java.io.Serializable;
021
022
023@ConfigModel(prefix = "jboot.mq.rocket")
024public class JbootRocketmqConfig implements Serializable {
025
026    private String namesrvAddr;
027    private String namespace;
028    private String consumerGroup = "jboot_default_consumer_group";
029    private Integer consumeMessageBatchMaxSize;
030    private String broadcastChannelPrefix = "broadcast-";
031    private String subscribeSubExpression = "*";
032
033    private String producerGroup = "jboot_default_producer_group";
034    private String instanceName;
035    private String clientIP;
036    private String createTopicKey;
037    private Boolean useTLS;
038
039    private Boolean sendLatencyFaultEnable;
040    private Boolean sendMessageWithVIPChannel;
041    private Integer sendMsgTimeout;
042
043    private Boolean retryAnotherBrokerWhenNotStoreOK;
044    private Integer retryTimesWhenSendAsyncFailed;
045    private Integer retryTimesWhenSendFailed;
046
047    public String getNamesrvAddr() {
048        return namesrvAddr;
049    }
050
051    public void setNamesrvAddr(String namesrvAddr) {
052        this.namesrvAddr = namesrvAddr;
053    }
054
055    public String getNamespace() {
056        return namespace;
057    }
058
059    public void setNamespace(String namespace) {
060        this.namespace = namespace;
061    }
062
063    public String getConsumerGroup() {
064        return consumerGroup;
065    }
066
067    public void setConsumerGroup(String consumerGroup) {
068        this.consumerGroup = consumerGroup;
069    }
070
071    public Integer getConsumeMessageBatchMaxSize() {
072        return consumeMessageBatchMaxSize;
073    }
074
075    public void setConsumeMessageBatchMaxSize(Integer consumeMessageBatchMaxSize) {
076        this.consumeMessageBatchMaxSize = consumeMessageBatchMaxSize;
077    }
078
079    public String getBroadcastChannelPrefix() {
080        return broadcastChannelPrefix;
081    }
082
083    public void setBroadcastChannelPrefix(String broadcastChannelPrefix) {
084        this.broadcastChannelPrefix = broadcastChannelPrefix;
085    }
086
087    public String getSubscribeSubExpression() {
088        return subscribeSubExpression;
089    }
090
091    public void setSubscribeSubExpression(String subscribeSubExpression) {
092        this.subscribeSubExpression = subscribeSubExpression;
093    }
094
095    public String getProducerGroup() {
096        return producerGroup;
097    }
098
099    public void setProducerGroup(String producerGroup) {
100        this.producerGroup = producerGroup;
101    }
102
103    public String getInstanceName() {
104        return instanceName;
105    }
106
107    public void setInstanceName(String instanceName) {
108        this.instanceName = instanceName;
109    }
110
111    public String getClientIP() {
112        return clientIP;
113    }
114
115    public void setClientIP(String clientIP) {
116        this.clientIP = clientIP;
117    }
118
119    public String getCreateTopicKey() {
120        return createTopicKey;
121    }
122
123    public void setCreateTopicKey(String createTopicKey) {
124        this.createTopicKey = createTopicKey;
125    }
126
127    public Boolean getUseTLS() {
128        return useTLS;
129    }
130
131    public void setUseTLS(Boolean useTLS) {
132        this.useTLS = useTLS;
133    }
134
135    public Boolean getSendLatencyFaultEnable() {
136        return sendLatencyFaultEnable;
137    }
138
139    public void setSendLatencyFaultEnable(Boolean sendLatencyFaultEnable) {
140        this.sendLatencyFaultEnable = sendLatencyFaultEnable;
141    }
142
143    public Boolean getSendMessageWithVIPChannel() {
144        return sendMessageWithVIPChannel;
145    }
146
147    public void setSendMessageWithVIPChannel(Boolean sendMessageWithVIPChannel) {
148        this.sendMessageWithVIPChannel = sendMessageWithVIPChannel;
149    }
150
151    public Integer getSendMsgTimeout() {
152        return sendMsgTimeout;
153    }
154
155    public void setSendMsgTimeout(Integer sendMsgTimeout) {
156        this.sendMsgTimeout = sendMsgTimeout;
157    }
158
159    public Boolean getRetryAnotherBrokerWhenNotStoreOK() {
160        return retryAnotherBrokerWhenNotStoreOK;
161    }
162
163    public void setRetryAnotherBrokerWhenNotStoreOK(Boolean retryAnotherBrokerWhenNotStoreOK) {
164        this.retryAnotherBrokerWhenNotStoreOK = retryAnotherBrokerWhenNotStoreOK;
165    }
166
167    public Integer getRetryTimesWhenSendAsyncFailed() {
168        return retryTimesWhenSendAsyncFailed;
169    }
170
171    public void setRetryTimesWhenSendAsyncFailed(Integer retryTimesWhenSendAsyncFailed) {
172        this.retryTimesWhenSendAsyncFailed = retryTimesWhenSendAsyncFailed;
173    }
174
175    public Integer getRetryTimesWhenSendFailed() {
176        return retryTimesWhenSendFailed;
177    }
178
179    public void setRetryTimesWhenSendFailed(Integer retryTimesWhenSendFailed) {
180        this.retryTimesWhenSendFailed = retryTimesWhenSendFailed;
181    }
182}