1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

Optimize documents and logs.

This commit is contained in:
wangxing 2019-08-13 13:45:08 +08:00
parent de2f3f2131
commit 7073be1186
2 changed files with 12 additions and 2 deletions

View File

@ -181,6 +181,16 @@ public class RocketMQMessageChannelBinder extends
} }
} }
/**
* The abstract binder should not call this method.
* @param destination
* @param producerProperties
* @param errorChannel
* @return
* @throws Exception
* @see RocketMQMessageChannelBinder#createProducerMessageHandler(ProducerDestination,
* ExtendedProducerProperties, MessageChannel, MessageChannel)
*/
@Override @Override
protected MessageHandler createProducerMessageHandler(ProducerDestination destination, protected MessageHandler createProducerMessageHandler(ProducerDestination destination,
ExtendedProducerProperties<RocketMQProducerProperties> producerProperties, ExtendedProducerProperties<RocketMQProducerProperties> producerProperties,

View File

@ -117,8 +117,8 @@ public class RocketMQMessageHandler extends AbstractMessageHandler implements Li
.fetchPublishMessageQueues(destination); .fetchPublishMessageQueues(destination);
if (producerProperties.getPartitionCount() != messageQueues.size()) { if (producerProperties.getPartitionCount() != messageQueues.size()) {
logger.info(String.format( logger.info(String.format(
"The partition count will change from '%s' to '%s'", "The partition count of topic '%s' will change from '%s' to '%s'",
producerProperties.getPartitionCount(), destination, producerProperties.getPartitionCount(),
messageQueues.size())); messageQueues.size()));
producerProperties.setPartitionCount(messageQueues.size()); producerProperties.setPartitionCount(messageQueues.size());
partitioningInterceptor partitioningInterceptor