|
1 | 1 | /*
|
2 |
| - * Copyright 2016-2021 the original author or authors. |
| 2 | + * Copyright 2016-2022 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -618,25 +618,6 @@ private AbstractIntegrationMessageBuilder<?> prepareMessageBuilder(Object replyO
|
618 | 618 | : getMessageBuilderFactory().withPayload(replyObject);
|
619 | 619 | }
|
620 | 620 |
|
621 |
| - /** |
622 |
| - * Build Spring message object based on the provided returned AMQP message info. |
623 |
| - * @param message the returned AMQP message |
624 |
| - * @param replyCode the returned message reason code |
625 |
| - * @param replyText the returned message reason text |
626 |
| - * @param exchange the exchange the message returned from |
627 |
| - * @param returnedRoutingKey the routing key for returned message |
628 |
| - * @param converter the converter to deserialize body of the returned AMQP message |
629 |
| - * @return the Spring message which represents a returned AMQP message |
630 |
| - * @deprecated since 5.4 in favor of {@link #buildReturnedMessage(ReturnedMessage, MessageConverter)} |
631 |
| - */ |
632 |
| - @Deprecated |
633 |
| - protected Message<?> buildReturnedMessage(org.springframework.amqp.core.Message message, |
634 |
| - int replyCode, String replyText, String exchange, String returnedRoutingKey, MessageConverter converter) { |
635 |
| - |
636 |
| - return buildReturnedMessage(new ReturnedMessage(message, replyCode, replyText, exchange, returnedRoutingKey), |
637 |
| - converter); |
638 |
| - } |
639 |
| - |
640 | 621 | protected Message<?> buildReturnedMessage(ReturnedMessage returnedMessage, MessageConverter converter) {
|
641 | 622 | org.springframework.amqp.core.Message amqpMessage = returnedMessage.getMessage();
|
642 | 623 | Object returnedObject = converter.fromMessage(amqpMessage);
|
@@ -731,15 +712,6 @@ public SettableListenableFuture<Confirm> getFuture() {
|
731 | 712 | }
|
732 | 713 | }
|
733 | 714 |
|
734 |
| - @Override |
735 |
| - @Deprecated |
736 |
| - public void setReturnedMessage(org.springframework.amqp.core.Message returnedMessage) { |
737 |
| - if (this.userData instanceof CorrelationData) { |
738 |
| - ((CorrelationData) this.userData).setReturnedMessage(returnedMessage); |
739 |
| - } |
740 |
| - super.setReturnedMessage(returnedMessage); |
741 |
| - } |
742 |
| - |
743 | 715 | @Override
|
744 | 716 | public void setReturned(ReturnedMessage returned) {
|
745 | 717 | if (this.userData instanceof CorrelationData) {
|
|
0 commit comments