简体   繁体   English

编年史队列:recordHistory() 不再可用了吗?

[英]Chronicle Queue: Is recordHistory() not available anymore?

I'd like to benchmark the queue performance using the method demonstrated in github README .我想使用github README中演示的方法对队列性能进行基准测试。

However, when I tried on the latest version (chronicle-queue: 5.23ea5, chronicle-wire: 2.23ea5), recordHistory(bool recordHistory) doesn't seem to be available, I doubled checked javadoc .但是,当我尝试使用最新版本(chronicle-queue:5.23ea5,chronicle-wire:2.23ea5)时, recordHistory(bool recordHistory)似乎不可用,我加倍检查了javadoc

MethodWriterBuilder seemed to have been replaced by VanillaMethodWriterBuilder , which does not have recordHistory(bool recordHistory) method. MethodWriterBuilder似乎已被VanillaMethodWriterBuilder取代,后者没有recordHistory(bool recordHistory)方法。

Does this library still provide a way of tracing messages and adding timestamps as they move through the system?这个库是否仍然提供一种方法来跟踪消息并在消息通过系统时添加时间戳?

I would appreciate any pointers.我将不胜感激任何指示。 Thank you.谢谢你。

yes recordHistory(bool) has been removed.是的 recordHistory(bool) 已被删除。 It was only useful if sourceId was set so now setting sourceId (on the queue) will turn on recordHistory automatically.它只有在设置了 sourceId 时才有用,所以现在设置 sourceId(在队列中)将自动打开 recordHistory。

We are updating the CQ documentation to reflect this.我们正在更新 CQ 文档以反映这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM