mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Update RocketMQMessageChannelBinder.java
use AbstractMessageChannel.getInterceptors() to replace ChannelInterceptorAware.getChannelInterceptors()
This commit is contained in:
parent
213bf2a912
commit
ec06f97aa0
@ -169,7 +169,7 @@ public class RocketMQMessageChannelBinder extends
|
|||||||
rocketMQTemplate, destination.getName(), producerGroup,
|
rocketMQTemplate, destination.getName(), producerGroup,
|
||||||
producerProperties.getExtension().getTransactional(),
|
producerProperties.getExtension().getTransactional(),
|
||||||
instrumentationManager, producerProperties,
|
instrumentationManager, producerProperties,
|
||||||
((AbstractMessageChannel) channel).getChannelInterceptors().stream()
|
((AbstractMessageChannel) channel).getInterceptors().stream()
|
||||||
.filter(channelInterceptor -> channelInterceptor instanceof MessageConverterConfigurer.PartitioningInterceptor)
|
.filter(channelInterceptor -> channelInterceptor instanceof MessageConverterConfigurer.PartitioningInterceptor)
|
||||||
.map(channelInterceptor -> ((MessageConverterConfigurer.PartitioningInterceptor) channelInterceptor))
|
.map(channelInterceptor -> ((MessageConverterConfigurer.PartitioningInterceptor) channelInterceptor))
|
||||||
.findFirst().orElse(null));
|
.findFirst().orElse(null));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user