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
此方法如下:
public void start(Properties mainProperties, Properties consumerProperties, Properties producerProperties) { final ServerConfig config = new ServerConfig(mainProperties); final ConsumerConfig consumerConfig = consumerProperties == null ? null : new ConsumerConfig(consumerProperties); final ProducerConfig producerConfig = consumerConfig == null ? null : new ProducerConfig(producerProperties); start(config, consumerConfig, producerConfig); }
ProducerConfig producerConfig ... 这行代码判断是否有误,应该是:
ProducerConfig producerConfig ...
final ProducerConfig producerConfig = producerProperties == null ? null : new ProducerConfig(producerProperties);
是否应该是判断 producerProperties == null 而不是 consumerConfig == null.
producerProperties == null
consumerConfig == null
The text was updated successfully, but these errors were encountered:
没问题。
这段代码的意思是 如果需要消费消息,那么消费的消息需要重新以Producer的方式发送出去。 其实是镜像拷贝功能。
Sorry, something went wrong.
No branches or pull requests
此方法如下:
ProducerConfig producerConfig ...
这行代码判断是否有误,应该是:是否应该是判断
producerProperties == null
而不是consumerConfig == null
.The text was updated successfully, but these errors were encountered: