Java Code Examples for org.springframework.amqp.core.MessageProperties#getConsumerQueue()

The following examples show how to use org.springframework.amqp.core.MessageProperties#getConsumerQueue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RepublishMessageRecovererExtend.java    From summerframework with Apache License 2.0 5 votes vote down vote up
private String createRetryQueueAndGetRetryRourtingKey(Message message) {
    MessageProperties messageProperties = message.getMessageProperties();
    String exchange = messageProperties.getReceivedExchange();
    String routeKey = messageProperties.getReceivedRoutingKey();
    String queueName = messageProperties.getConsumerQueue();
    String retryQueueName = queueName + DeadLetterConstant.DEFAULT_RETRY_QUEUENAME_PREFIX;
    String retryRouteKey = routeKey + DeadLetterConstant.DEFAULT_RETRY_QUEUENAME_PREFIX;
    deadLetterQueueCreator.createDeadLetterQueue(exchange, routeKey, retryRouteKey, queueName, retryQueueName,
        interval);
    return retryRouteKey;
}
 
Example 2
Source File: MessageProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public String channelName() {
  MessageProperties properties = delegate.getMessageProperties();
  return properties != null ? properties.getConsumerQueue() : null;
}
 
Example 3
Source File: MessageConsumerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public String channelName() {
  MessageProperties properties = delegate.getMessageProperties();
  return properties != null ? properties.getConsumerQueue() : null;
}