com.rabbitmq.perf.ProducerParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of perf-test Show documentation
Show all versions of perf-test Show documentation
A Java-based performance testing tool for RabbitMQ.
// Copyright (c) 2018-Present Pivotal Software, Inc. All rights reserved.
//
// This software, the RabbitMQ Java client library, is triple-licensed under the
// Mozilla Public License 1.1 ("MPL"), the GNU General Public License version 2
// ("GPL") and the Apache License version 2 ("ASL"). For the MPL, please see
// LICENSE-MPL-RabbitMQ. For the GPL, please see LICENSE-GPL2. For the ASL,
// please see LICENSE-APACHE2.
//
// This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
// either express or implied. See the LICENSE file for specific language governing
// rights and limitations of this software.
//
// If you have any questions regarding licensing, please contact us at
// [email protected].
package com.rabbitmq.perf;
import com.rabbitmq.client.Channel;
import java.util.List;
import java.util.Map;
/**
*
* @since 2.1.0
*/
public class ProducerParameters {
private Channel channel;
private String exchangeName;
private String id;
private boolean randomRoutingKey;
private List> flags;
private int txSize;
private float rateLimit;
private int msgLimit;
private long confirm;
private int confirmTimeout;
private MessageBodySource messageBodySource;
private TimestampProvider tsp;
private Stats stats;
private Map messageProperties;
private MulticastSet.CompletionHandler completionHandler;
private int routingKeyCacheSize;
private int randomStartDelayInSeconds;
private Recovery.RecoveryProcess recoveryProcess;
public Channel getChannel() {
return channel;
}
public ProducerParameters setChannel(Channel channel) {
this.channel = channel;
return this;
}
public String getExchangeName() {
return exchangeName;
}
public ProducerParameters setExchangeName(String exchangeName) {
this.exchangeName = exchangeName;
return this;
}
public String getId() {
return id;
}
public ProducerParameters setId(String id) {
this.id = id;
return this;
}
public boolean isRandomRoutingKey() {
return randomRoutingKey;
}
public ProducerParameters setRandomRoutingKey(boolean randomRoutingKey) {
this.randomRoutingKey = randomRoutingKey;
return this;
}
public List> getFlags() {
return flags;
}
public ProducerParameters setFlags(List> flags) {
this.flags = flags;
return this;
}
public int getTxSize() {
return txSize;
}
public ProducerParameters setTxSize(int txSize) {
this.txSize = txSize;
return this;
}
public float getRateLimit() {
return rateLimit;
}
public ProducerParameters setRateLimit(float rateLimit) {
this.rateLimit = rateLimit;
return this;
}
public int getMsgLimit() {
return msgLimit;
}
public ProducerParameters setMsgLimit(int msgLimit) {
this.msgLimit = msgLimit;
return this;
}
public long getConfirm() {
return confirm;
}
public ProducerParameters setConfirm(long confirm) {
this.confirm = confirm;
return this;
}
public int getConfirmTimeout() {
return confirmTimeout;
}
public ProducerParameters setConfirmTimeout(int confirmTimeout) {
this.confirmTimeout = confirmTimeout;
return this;
}
public MessageBodySource getMessageBodySource() {
return messageBodySource;
}
public ProducerParameters setMessageBodySource(MessageBodySource messageBodySource) {
this.messageBodySource = messageBodySource;
return this;
}
public TimestampProvider getTsp() {
return tsp;
}
public ProducerParameters setTsp(TimestampProvider tsp) {
this.tsp = tsp;
return this;
}
public Stats getStats() {
return stats;
}
public ProducerParameters setStats(Stats stats) {
this.stats = stats;
return this;
}
public Map getMessageProperties() {
return messageProperties;
}
public ProducerParameters setMessageProperties(Map messageProperties) {
this.messageProperties = messageProperties;
return this;
}
public MulticastSet.CompletionHandler getCompletionHandler() {
return completionHandler;
}
public ProducerParameters setCompletionHandler(MulticastSet.CompletionHandler completionHandler) {
this.completionHandler = completionHandler;
return this;
}
public int getRoutingKeyCacheSize() {
return routingKeyCacheSize;
}
public ProducerParameters setRoutingKeyCacheSize(int routingKeyCacheSize) {
this.routingKeyCacheSize = routingKeyCacheSize;
return this;
}
public int getRandomStartDelayInSeconds() {
return randomStartDelayInSeconds;
}
public ProducerParameters setRandomStartDelayInSeconds(int randomStartDelayInSeconds) {
this.randomStartDelayInSeconds = randomStartDelayInSeconds;
return this;
}
public ProducerParameters setRecoveryProcess(Recovery.RecoveryProcess recoveryProcess) {
this.recoveryProcess = recoveryProcess;
return this;
}
public Recovery.RecoveryProcess getRecoveryProcess() {
return recoveryProcess;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy