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:
parent
de2f3f2131
commit
7073be1186
@ -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,
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user