简体   繁体   English

如何为ArangoDB使用异步Java驱动程序设置协议?

[英]How to set protocol using async java driver for ArangoDB?

I am trying to connect ArangoDB from my java program. 我正在尝试从Java程序连接ArangoDB。 I have used the official async java driver for arangodb. 我已经为arangodb使用了官方的异步Java驱动程序。 The document mentions that we can set the protocol using useProtocol() method. 该文档提到我们可以使用useProtocol()方法设置协议。 But, this method is not present in code and in javadoc as well. 但是,此方法在代码和javadoc中都不存在。 Can somebody tell me how can I set the protocol to HTTP? 有人可以告诉我如何将协议设置为HTTP吗? The github document mentions this following code. github文档提到了以下代码。

ArangoDBAsync arangoDB = new ArangoDBAsync.Builder().useProtocol(Protocol.VST).build();

But object returned by Builder() method do not have any useProtocol() method. 但是Builder()方法返回的对象没有任何useProtocol()方法。

This was a mistake in the documentation. 这是文档中的错误。 The async java driver only supports VelocyStream while the sync driver supports different network protocols. 异步Java驱动程序仅支持VelocyStream,而同步驱动程序支持不同的网络协议。

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

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