com.rabbitmq.http.client.domain.ShovelDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-client Show documentation
Show all versions of http-client Show documentation
Java client for the RabbitMQ HTTP API
/*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.rabbitmq.http.client.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
//{"src-uri": "amqp://", "src-queue": "my-queue",
// "dest-uri": "amqp://remote-server", "dest-queue": "another-queue"}
public class ShovelDefinition {
@JsonProperty("src-exchange")
private String sourceExchange;
@JsonProperty("src-exchange-key")
private String sourceExchangeKey;
@JsonProperty("src-queue")
private String sourceQueue;
@JsonProperty("dest-exchange")
private String destinationExchange;
@JsonProperty("dest-exchange-key")
private String destinationExchangeKey;
@JsonProperty("dest-queue")
private String destinationQueue;
public ShovelDefinition() {
}
public String getSourceExchange() {
return sourceExchange;
}
public void setSourceExchange(String sourceExchange) {
this.sourceExchange = sourceExchange;
}
public String getSourceExchangeKey() {
return sourceExchangeKey;
}
public void setSourceExchangeKey(String sourceExchangeKey) {
this.sourceExchangeKey = sourceExchangeKey;
}
public String getSourceQueue() {
return sourceQueue;
}
public void setSourceQueue(String sourceQueue) {
this.sourceQueue = sourceQueue;
}
public String getDestinationExchange() {
return destinationExchange;
}
public void setDestinationExchange(String destExchange) {
this.destinationExchange = destExchange;
}
public String getDestinationExchangeKey() {
return destinationExchangeKey;
}
public void setDestinationExchangeKey(String destExchangeKey) {
this.destinationExchangeKey = destExchangeKey;
}
public String getDestinationQueue() {
return destinationQueue;
}
public void setDestinationQueue(String destQueue) {
this.destinationQueue = destQueue;
}
@Override
public String toString() {
return "ShovelDetails{" + "sourceExchange=" + sourceExchange + "sourceExchangeKey=" + sourceExchangeKey + ", sourceQueue=" + sourceQueue
+ ", destinationExchange='" + destinationExchange + ", destinationExchangeKey='" + destinationExchangeKey + '\''
+ ", destinationQueue='" + destinationQueue + '}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy