本文介绍了设置Couchbase obsPollInterval&.NET客户端中的obsPollMax的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Couchbase Java客户端中,有obsPollInterval&可以在客户端上设置的obsPollMax参数.如何在.NET客户端中设置等效项?

In Couchbase Java client there are obsPollInterval & obsPollMax parameters that can be set on the client.How do I set the equivalent in .NET client?

obsPollInterval&obsPollMax

推荐答案

不完全是,这两个客户端的实现略有不同.最接近的是ObserveTimeout配置值,默认值为1分钟,并且内部观察将每500ms进行一次,直到达到超时或操作成功为止.

Not exactly, the two clients have slightly different implementations. The closest thing would be the ObserveTimeout configuration value which defaults to 1 minute and internally the observe will happen every 500ms until either the timeout is reached or operation succeeds.

有关ObserveTimeout的更多信息,可以在这里找到: http://docs.couchbase.com/couchbase-sdk-net-1.3/#appendix-configuring-the-net-client-library

More information regarding ObserveTimeout can be found here: http://docs.couchbase.com/couchbase-sdk-net-1.3/#appendix-configuring-the-net-client-library

这篇关于设置Couchbase obsPollInterval&.NET客户端中的obsPollMax的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 21:30