We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
未在配置相关中找到可以设置consumeThreadMax和consumeThreadMin这两个参数的地方。我这边需要使用并行多线程消费消息,请问该如何处理
The text was updated successfully, but these errors were encountered:
配置该属性 org.springframework.cloud.stream.binder.ConsumerProperties#concurrency,会把 consumeThreadMax 和 consumeThreadMin 都设置为指定值
org.springframework.cloud.stream.binder.ConsumerProperties#concurrency
consumeThreadMax
consumeThreadMin
spring.cloud.stream.bindings.processor-in-0.consumer.concurrency=10
如果想要更灵活地配置 consumeThreadMax 和 consumeThreadMin,可以自己创建 DefaultMQPushConsumer
DefaultMQPushConsumer
DefaultMQPushConsumer consumer = new DefaultMQPushConsumer(...); consumer.setConsumeThreadMin(2); consumer.setConsumeThreadMax(10);
Sorry, something went wrong.
No branches or pull requests
未在配置相关中找到可以设置consumeThreadMax和consumeThreadMin这两个参数的地方。我这边需要使用并行多线程消费消息,请问该如何处理
The text was updated successfully, but these errors were encountered: