Here are the examples of the java api org.springframework.amqp.core.TopicExchange taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
67 Examples
19
View Source File : RabbitConfiguration.java
License : Apache License 2.0
Project Creator : ticktok-io
License : Apache License 2.0
Project Creator : ticktok-io
@Bean
public TickChannelOperations tickChannelExplorer(AmqpAdmin amqpAdmin, TopicExchange topicExchange) {
return new RabbitTickChannelOperations(rabbitProperties, amqpAdmin, topicExchange);
}
19
View Source File : TopicProducerServiceImpl.java
License : GNU General Public License v3.0
Project Creator : gxing19
License : GNU General Public License v3.0
Project Creator : gxing19
/**
* @name: TopicProducerServiceImpl
* @desc: TODO
* @author: gxing
* @date: 2018-10-26 17:33
*/
@Service
public clreplaced TopicProducerServiceImpl implements TopicProducerService {
@Autowired
private RabbitTemplate rabbitTemplate;
@Autowired
private TopicExchange topicExchange;
@Override
public void rabbitMQSendStr(String msg) {
rabbitTemplate.convertAndSend(topicExchange.getName(), "topic.news", "Top Ten News");
}
@Override
public void rabbitMQSendObj(User andy) {
rabbitTemplate.convertAndSend(topicExchange.getName(), "topic.news.nba", "2018-2019 NBA First Battle Start");
}
}
19
View Source File : TopicRabbitMQConfig.java
License : GNU General Public License v3.0
Project Creator : gxing19
License : GNU General Public License v3.0
Project Creator : gxing19
/**
* 注册交换器
*
* @return
*/
@Bean
public TopicExchange topicExchange() {
TopicExchange exchange = new TopicExchange("topic.exchange", false, true);
return exchange;
}
18
View Source File : RpcClient.java
License : MIT License
Project Creator : PacktPublishing
License : MIT License
Project Creator : PacktPublishing
public clreplaced RpcClient {
private static final Logger LOG = LoggerFactory.getLogger(RpcClient.clreplaced);
@Autowired
private RabbitTemplate template;
@Autowired
private TopicExchange rpcExchange;
public ServiceResponse invokeService(ServiceRequest request) {
LOG.trace("Exchange: {} ", rpcExchange);
LOG.trace("Service Request: {}", request);
String routingKey = request.getServiceName() + "." + request.getServiceAction();
ServiceResponse response = (ServiceResponse) template.convertSendAndReceive(rpcExchange.getName(), routingKey, request);
LOG.trace("Service Response: {}", response);
return Optional.ofNullable(response).orElse(generateTimedoutResponse(request));
}
private ServiceResponse generateTimedoutResponse(ServiceRequest request) {
ServiceResponse response = new ServiceResponse().withId(UUID.randomUUID().toString()).withCreatedBy("System").withCreatedDate(new Date()).withErrorMessage(new ErrorMessage().withCode("ERR_SERVICE_UNAVAIL").withMessage("Service Unavaialble").withDetails("Internal Error: we are sorry, the " + request.getServiceName() + " is not reachable. Please try again later.")).withStatusCode(Response.Status.SERVICE_UNAVAILABLE.toString()).withRelatedRequest(request.getId());
LOG.trace("Service timeout response: {}", response);
return response;
}
}
18
View Source File : AmqpPublisher.java
License : MIT License
Project Creator : PacktPublishing
License : MIT License
Project Creator : PacktPublishing
public clreplaced AmqpPublisher {
private static final Logger LOG = LoggerFactory.getLogger(AmqpPublisher.clreplaced);
@Autowired
private RabbitTemplate template;
@Autowired
private TopicExchange replacedxchange;
public void publishEvent(ServiceRequest request) {
LOG.trace("Exchange: {} ", replacedxchange);
LOG.trace("Service Request: {}", request);
String routingKey = request.getServiceName() + "." + request.getServiceAction();
template.convertAndSend(replacedxchange.getName(), routingKey, request);
}
public void publishError(ServiceResponse errorResponse, String routingKey) {
LOG.trace("Exchange: {}", replacedxchange);
LOG.trace("Service Error: {}", errorResponse);
template.convertAndSend(replacedxchange.getName(), routingKey, errorResponse);
}
}
18
View Source File : RabbitMQClient.java
License : Apache License 2.0
Project Creator : kekingcn
License : Apache License 2.0
Project Creator : kekingcn
private void setDataExchange() {
TopicExchange dataExchange = new TopicExchange(DATA_EXCHANGE, true, false);
amqpAdmin.declareExchange(dataExchange);
this.dataExchange = dataExchange;
}
18
View Source File : RabbitMQConfig.java
License : Apache License 2.0
Project Creator : kekingcn
License : Apache License 2.0
Project Creator : kekingcn
@Bean("dataExchange")
public TopicExchange dataExchange(ConnectionFactory connectionFactory) {
TopicExchange dataExchange = new TopicExchange(DATA_EXCHANGE, true, false);
new RabbitAdmin(connectionFactory).declareExchange(dataExchange);
return dataExchange;
}
18
View Source File : Tut5Sender.java
License : MIT License
Project Creator : jarvisqi
License : MIT License
Project Creator : jarvisqi
/**
* @author Jarvis
* @date 2018/7/31
*/
public clreplaced Tut5Sender {
@Autowired
private AmqpTemplate template;
@Autowired
private TopicExchange topicExchange;
private int index;
private int count;
private final String[] keys = { "quick.orange.rabbit", "lazy.orange.elephant", "quick.orange.fox", "lazy.brown.fox", "lazy.pink.rabbit", "quick.brown.fox" };
@Scheduled(fixedDelay = 1000, initialDelay = 500)
public void send() {
StringBuilder builder = new StringBuilder("Hello to ");
if (++this.index == keys.length) {
this.index = 0;
}
String key = keys[this.index];
builder.append(key).append(' ');
builder.append(Integer.toString(++this.count));
String message = builder.toString();
template.convertAndSend(topicExchange.getName(), key, message);
System.out.println(" [x] Sent '" + message + "'");
}
}
18
View Source File : EmailServiceRabbitConfig.java
License : MIT License
Project Creator : ita-social-projects
License : MIT License
Project Creator : ita-social-projects
/**
* The binding that is used for linking email topic exchange to send habit notification email queue.
*
* @return Binding with topic exchange and send notification queue linked.
*/
@Bean
public Binding sendHabitNotificationTopicBinding(TopicExchange emailTopicExchange) {
return BindingBuilder.bind(sendHabitNotificationQueue()).to(emailTopicExchange).with(SEND_HABIT_NOTIFICATION_ROUTING_KEY);
}
18
View Source File : EmailServiceRabbitConfig.java
License : MIT License
Project Creator : ita-social-projects
License : MIT License
Project Creator : ita-social-projects
/**
* The binding that is used for linking email topic exchange to preplacedword recovery email queue.
*
* @return Binding with topic exchange and preplacedword recovery queue linked.
*/
@Bean
public Binding preplacedwordRecoveryQueueToEmailTopicBinding(TopicExchange emailTopicExchange) {
return BindingBuilder.bind(preplacedwordRecoveryEmailQueue()).to(emailTopicExchange).with(PreplacedWORD_RECOVERY_ROUTING_KEY);
}
18
View Source File : EmailServiceRabbitConfig.java
License : MIT License
Project Creator : ita-social-projects
License : MIT License
Project Creator : ita-social-projects
/**
* The binding that is used for linking email topic exchange to send report email queue.
*
* @return Binding with topic exchange and send report queue linked.
*/
@Bean
public Binding sendReportEmailTopicBinding(TopicExchange emailTopicExchange) {
return BindingBuilder.bind(sendReportEmailQueue()).to(emailTopicExchange).with(SEND_REPORT_ROUTING_KEY);
}
18
View Source File : EmailServiceRabbitConfig.java
License : MIT License
Project Creator : ita-social-projects
License : MIT License
Project Creator : ita-social-projects
/**
* The binding that is used for linking email topic exchange to change place status email queue.
*
* @return Binding with topic exchange and change place status queue linked.
*/
@Bean
public Binding changePlaceStatusQueueToEmailTopicBinding(TopicExchange emailTopicExchange) {
return BindingBuilder.bind(changePlaceStatusEmailQueue()).to(emailTopicExchange).with(CHANGE_PLACE_STATUS_ROUTING_KEY);
}
18
View Source File : EmailServiceRabbitConfig.java
License : MIT License
Project Creator : ita-social-projects
License : MIT License
Project Creator : ita-social-projects
/**
* The binding that is used for send verify email..
*
* @return Binding with send verify email.
*/
@Bean
public Binding verifyEmailQueueToEmailTopicBinding(TopicExchange emailTopicExchange) {
return BindingBuilder.bind(signUpVerifyEmailQueue()).to(emailTopicExchange).with(VERIFY_EMAIL_ROUTING_KEY);
}
17
View Source File : BusConfig.java
License : Apache License 2.0
Project Creator : zhoutaoo
License : Apache License 2.0
Project Creator : zhoutaoo
@Bean
Binding binding(Queue queue, TopicExchange exchange) {
log.info("binding {} to {} with {}", queue, exchange, ROUTING_KEY);
return BindingBuilder.bind(queue).to(exchange).with(ROUTING_KEY);
}
17
View Source File : BusConfig.java
License : Apache License 2.0
Project Creator : zhoutaoo
License : Apache License 2.0
Project Creator : zhoutaoo
@Bean
Binding binding(Queue queue, TopicExchange exchange) {
log.info("binding {} to {} with {}", queue, exchange, QUEUE_NAME);
return BindingBuilder.bind(queue).to(exchange).with(QUEUE_NAME);
}
17
View Source File : TopicRabbitConfig.java
License : Apache License 2.0
Project Creator : yanghaiji
License : Apache License 2.0
Project Creator : yanghaiji
@Bean
Binding bindingExchangeMessage(Queue queueMessage, TopicExchange exchange) {
return BindingBuilder.bind(queueMessage).to(exchange).with(JAVAYOHO_TOPIC);
}
17
View Source File : TopicRabbitConfig.java
License : Apache License 2.0
Project Creator : yanghaiji
License : Apache License 2.0
Project Creator : yanghaiji
@Bean
Binding bindingExchangeMessages(Queue queueMessages, TopicExchange exchange) {
return BindingBuilder.bind(queueMessages).to(exchange).with(TOPIC);
}
17
View Source File : RabbitmqConfig.java
License : Apache License 2.0
Project Creator : xiuhuai
License : Apache License 2.0
Project Creator : xiuhuai
@Bean
Binding bindingExchangeMessages(Queue queueMessages, TopicExchange exchange) {
return BindingBuilder.bind(queueMessages).to(exchange).with("topic.#");
}
17
View Source File : RabbitmqConfig.java
License : Apache License 2.0
Project Creator : xiuhuai
License : Apache License 2.0
Project Creator : xiuhuai
@Bean
Binding bindingExchangeMessage(Queue queueMessage, TopicExchange exchange) {
return BindingBuilder.bind(queueMessage).to(exchange).with("topic.a");
}
17
View Source File : TopicRabbitConfig.java
License : Apache License 2.0
Project Creator : WinterChenS
License : Apache License 2.0
Project Creator : WinterChenS
@Bean
Binding bindingExchangeToMessages(Queue queueMessages, TopicExchange exchange) {
return BindingBuilder.bind(queueMessages).to(exchange).with("topic.#");
}
17
View Source File : TopicRabbitConfig.java
License : Apache License 2.0
Project Creator : WinterChenS
License : Apache License 2.0
Project Creator : WinterChenS
@Bean
Binding bindingExchangeToMessage(Queue queueMessage, TopicExchange exchange) {
return BindingBuilder.bind(queueMessage).to(exchange).with("topic.message");
}
17
View Source File : TopicConfig.java
License : Apache License 2.0
Project Creator : vipstone
License : Apache License 2.0
Project Creator : vipstone
// 绑定队列到交换器,并设置路由键(log.#)
@Bean
Binding bindingtopicExchangeQueue(Queue queuetopic, TopicExchange topicExchange) {
return BindingBuilder.bind(queuetopic).to(topicExchange).with("log.#");
}
17
View Source File : TopicConfig.java
License : Apache License 2.0
Project Creator : vipstone
License : Apache License 2.0
Project Creator : vipstone
// 绑定队列到交换器,并设置路由键(log.*.error)
@Bean
Binding bindingtopicExchangeQueue3(Queue queuetopic3, TopicExchange topicExchange) {
return BindingBuilder.bind(queuetopic3).to(topicExchange).with("log.*.error");
}
17
View Source File : TopicConfig.java
License : Apache License 2.0
Project Creator : vipstone
License : Apache License 2.0
Project Creator : vipstone
// 绑定队列到交换器,并设置路由键(log.*)
@Bean
Binding bindingtopicExchangeQueue2(Queue queuetopic2, TopicExchange topicExchange) {
return BindingBuilder.bind(queuetopic2).to(topicExchange).with("log.*");
}
17
View Source File : RabbitTopicConfig.java
License : Apache License 2.0
Project Creator : rule-engine
License : Apache License 2.0
Project Creator : rule-engine
@Bean
public Binding varBindingExchangeMessage(@Qualifier("varQueue") Queue varQueue, @Qualifier("varExchange") TopicExchange varExchange) {
return BindingBuilder.bind(varQueue).to(varExchange).with(VAR_TOPIC_ROUTING_KEY);
}
17
View Source File : RabbitTopicConfig.java
License : Apache License 2.0
Project Creator : rule-engine
License : Apache License 2.0
Project Creator : rule-engine
@Bean
public Binding ruleSetBindingExchangeMessage(@Qualifier("ruleSetQueue") Queue ruleSetQueue, @Qualifier("ruleSetExchange") TopicExchange ruleSetExchange) {
return BindingBuilder.bind(ruleSetQueue).to(ruleSetExchange).with(RULE_SET_TOPIC_ROUTING_KEY);
}
17
View Source File : RabbitTopicConfig.java
License : Apache License 2.0
Project Creator : rule-engine
License : Apache License 2.0
Project Creator : rule-engine
@Bean
public Binding ruleBindingExchangeMessage(@Qualifier("ruleQueue") Queue ruleQueue, @Qualifier("ruleExchange") TopicExchange ruleExchange) {
return BindingBuilder.bind(ruleQueue).to(ruleExchange).with(RULE_TOPIC_ROUTING_KEY);
}
17
View Source File : RabbitTopicConfig.java
License : Apache License 2.0
Project Creator : rule-engine
License : Apache License 2.0
Project Creator : rule-engine
@Bean
public Binding decisionTableBindingExchangeMessage(@Qualifier("decisionTableQueue") Queue decisionTableQueue, @Qualifier("decisionTableExchange") TopicExchange decisionTableExchange) {
return BindingBuilder.bind(decisionTableQueue).to(decisionTableExchange).with(DECISION_TABLE_TOPIC_ROUTING_KEY);
}
17
View Source File : TopicConfig.java
License : MIT License
Project Creator : rexlin600
License : MIT License
Project Creator : rexlin600
/**
* Binding direct exchange a binding
*
* @param topicQueueA topic queue a
* @param topicExchange topic exchange
* @return the binding
*/
@Bean
public Binding bindingDirectExchangeA(Queue topicQueueA, TopicExchange topicExchange) {
return BindingBuilder.bind(topicQueueA).to(topicExchange).with(TOPIC_ROUTINGKEY_A);
}
17
View Source File : TopicConfig.java
License : MIT License
Project Creator : rexlin600
License : MIT License
Project Creator : rexlin600
/**
* Binding direct exchange all binding
*
* @param topicQueueAll topic queue all
* @param topicExchange topic exchange
* @return the binding
*/
@Bean
public Binding bindingDirectExchangeAll(Queue topicQueueAll, TopicExchange topicExchange) {
return BindingBuilder.bind(topicQueueAll).to(topicExchange).with(TOPIC_ROUTINGKEY_ALL);
}
17
View Source File : Configurations.java
License : MIT License
Project Creator : PacktPublishing
License : MIT License
Project Creator : PacktPublishing
private List<TopicExchange> eventExchanges() {
return rabbitMqConfig.getEventRoutings().stream().map(rabbitMqConfig::getExchangeName).map(e -> {
TopicExchange exchange = new TopicExchange(e);
exchanegMap.put(e, exchange);
return exchange;
}).collect(Collectors.toList());
}
17
View Source File : Configurations.java
License : MIT License
Project Creator : PacktPublishing
License : MIT License
Project Creator : PacktPublishing
private List<TopicExchange> serviceExchanges() {
return rabbitMqConfig.getServiceRoutings().stream().map(rabbitMqConfig::getExchangeName).map(e -> {
TopicExchange exchange = new TopicExchange(e);
exchanegMap.put(e, exchange);
return exchange;
}).collect(Collectors.toList());
}
17
View Source File : RabbitConfig.java
License : Apache License 2.0
Project Creator : mxdldev
License : Apache License 2.0
Project Creator : mxdldev
@Bean
Binding binding(Queue queue, TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with(queueName);
}
17
View Source File : RabbitMqConfig.java
License : Apache License 2.0
Project Creator : michl-b
License : Apache License 2.0
Project Creator : michl-b
@Bean
Binding productBinding(@Qualifier("productQueue") Queue queue, TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with("product");
}
17
View Source File : RabbitMqConfig.java
License : Apache License 2.0
Project Creator : michl-b
License : Apache License 2.0
Project Creator : michl-b
@Bean
Binding dataBinding(@Qualifier("dataQueue") Queue queue, TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with("data");
}
17
View Source File : EmailServiceRabbitConfig.java
License : MIT License
Project Creator : ita-social-projects
License : MIT License
Project Creator : ita-social-projects
/**
* Method, that bind {@link this#ecoNewsEmailQueue()} with {@link this#emailTopicExchange()}.
*
* @param emailTopicExchange exchange to bind queue with.
* @param ecoNewsEmailQueue queue to bind exchange with.
* @return binding with {@link this#ecoNewsEmailQueue()} and {@link this#emailTopicExchange()}.
*/
@Bean
public Binding ecoNewsQueueToEmailTopicBinding(TopicExchange emailTopicExchange, Queue ecoNewsEmailQueue) {
return BindingBuilder.bind(ecoNewsEmailQueue).to(emailTopicExchange).with(ADD_ECO_NEWS_ROUTING_KEY);
}
17
View Source File : RabbitMQConfiguration.java
License : MIT License
Project Creator : hnjaman
License : MIT License
Project Creator : hnjaman
@Bean
Binding binding(final Queue queue, final TopicExchange exchange, @Value("${offer.anything.routing-key}") final String routingKey) {
return BindingBuilder.bind(queue).to(exchange).with(routingKey);
}
17
View Source File : TopicRabbitMQConfig.java
License : GNU General Public License v3.0
Project Creator : gxing19
License : GNU General Public License v3.0
Project Creator : gxing19
/**
* 订阅新闻下的NBA主题只可以收到NBA新闻
*
* @param queueNewsNba
* @param exchange
* @return
*/
@Bean
public Binding bindingExchangeNewsNba(Queue queueNewsNba, TopicExchange exchange) {
return BindingBuilder.bind(queueNewsNba).to(exchange).with("topic.news.nba");
}
17
View Source File : TopicRabbitMQConfig.java
License : GNU General Public License v3.0
Project Creator : gxing19
License : GNU General Public License v3.0
Project Creator : gxing19
/**
* 队列绑定到交换器,设置匹配的routing_key
* /
* <p>
* /**
* 订阅新闻主题可以收到所有新闻包括NBA
*
* @param queueNews
* @param topicExchange
* @return
*/
@Bean
public Binding bindingExchangeNews(Queue queueNews, TopicExchange topicExchange) {
return BindingBuilder.bind(queueNews).to(topicExchange).with("topic.news.#");
}
17
View Source File : MiddlewareConfiguration.java
License : GNU General Public License v3.0
Project Creator : gnss-pro
License : GNU General Public License v3.0
Project Creator : gnss-pro
@Bean
Binding bindingJt809LogExchange(Queue webJt809LogQueue, TopicExchange jt809LogExchange) {
return BindingBuilder.bind(webJt809LogQueue).to(jt809LogExchange).with(MqConstant.JT809_LOG_ROUTING_KEY);
}
17
View Source File : MiddlewareConfiguration.java
License : GNU General Public License v3.0
Project Creator : gnss-pro
License : GNU General Public License v3.0
Project Creator : gnss-pro
@Bean
Binding bindingUpCommandExchange(Queue upCommandQueue, TopicExchange upCommandExchange) {
String upCommandRoutingKey = String.format("#.%s.up.command", appName);
return BindingBuilder.bind(upCommandQueue).to(upCommandExchange).with(upCommandRoutingKey);
}
17
View Source File : MiddlewareConfiguration.java
License : GNU General Public License v3.0
Project Creator : gnss-pro
License : GNU General Public License v3.0
Project Creator : gnss-pro
@Bean
Binding bindingJt808LogExchange(Queue webJt808LogQueue, TopicExchange jt808LogExchange) {
return BindingBuilder.bind(webJt808LogQueue).to(jt808LogExchange).with(MqConstant.JT808_LOG_ROUTING_KEY);
}
17
View Source File : MiddlewareConfiguration.java
License : GNU General Public License v3.0
Project Creator : gnss-pro
License : GNU General Public License v3.0
Project Creator : gnss-pro
@Bean
Binding bindingAttachmentExchange(Queue attachmentQueue, TopicExchange attachmentExchange) {
return BindingBuilder.bind(attachmentQueue).to(attachmentExchange).with(MqConstant.ATTACHMENT_ROUTING_KEY);
}
17
View Source File : MiddlewareConfiguration.java
License : GNU General Public License v3.0
Project Creator : gnss-pro
License : GNU General Public License v3.0
Project Creator : gnss-pro
@Bean
Binding bindingUploadDataExchange(Queue webUploadDataQueue, TopicExchange webUploadDataExchange) {
return BindingBuilder.bind(webUploadDataQueue).to(webUploadDataExchange).with(MqConstant.WEB_UPLOAD_DATA_ROUTING_KEY);
}
17
View Source File : RabbitMqRelationBindingConfig.java
License : MIT License
Project Creator : FutaoSmile
License : MIT License
Project Creator : FutaoSmile
/**
* Bak绑定
*
* @param queue
* @param exchange
* @return
*/
@Bean("bindingBak")
public Binding bindingBak(@Qualifier("topicQueueBak") @Autowired Queue queue, @Qualifier("topicExchangeBak") @Autowired TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with("topic.#.bak");
}
17
View Source File : RabbitMqTopicConfig.java
License : MIT License
Project Creator : fujiangwei
License : MIT License
Project Creator : fujiangwei
/**
* 绑定topic.msgs到交换机topicExchange,rotingKey为topic.#,可以匹配以topic.开头的所有的路由Key对应的消息
*
* @param queueMsgs
* @param topicExchange
* @return
*/
@Bean
Binding bindingQueue2Exchange2(Queue queueMsgs, TopicExchange topicExchange) {
return BindingBuilder.bind(queueMsgs).to(topicExchange).with("topic.#");
}
17
View Source File : RabbitMqTopicConfig.java
License : MIT License
Project Creator : fujiangwei
License : MIT License
Project Creator : fujiangwei
/**
* 绑定topic.msg到交换机topicExchange,rotingKey为topic.#,可以匹配为topic.msg的路由Key对应的消息
*
* @param queueMsg
* @param topicExchange
* @return
*/
@Bean
Binding bindingQueue2Exchange(Queue queueMsg, TopicExchange topicExchange) {
return BindingBuilder.bind(queueMsg).to(topicExchange).with("topic.msg");
}
17
View Source File : RabbitmqConfig.java
License : GNU General Public License v3.0
Project Creator : boaglio
License : GNU General Public License v3.0
Project Creator : boaglio
@Bean
Binding binding(Queue queue, TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with(ROUTING_KEY);
}
17
View Source File : SampleApplication.java
License : Apache License 2.0
Project Creator : aclement
License : Apache License 2.0
Project Creator : aclement
@Bean
Binding binding(Queue queue, @Qualifier("input") TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with("#");
}
17
View Source File : CoreRabbitMQConfiguration.java
License : GNU Lesser General Public License v2.1
Project Creator : abixen
License : GNU Lesser General Public License v2.1
Project Creator : abixen
@Bean
List<Binding> binding(TopicExchange exchange) {
List<Binding> bindings = new ArrayList<>();
queues().forEach(queue -> {
bindings.add(BindingBuilder.bind(queue).to(exchange).with(queue.getName()));
});
return bindings;
}
See More Examples