arangodb / arangodb-java-driver

The official ArangoDB Java driver.
Apache License 2.0
201 stars 93 forks source link

[DE-498] [DE-499] Async API #519

Closed rashtao closed 11 months ago

rashtao commented 11 months ago

This PR re-introduces asynchronous API in v7. The asynchronous API is now accessible through com.arangodb.ArangoDB#async() : ArangoDBAsync. Cursor and query methods (in ArangoDatabase) will be implemented in a separate PR.

The communication layer has been refactored to be asynchronous. It has been implemented for all supported communication protocols: VST, HTTP/1.1 and HTTP/2. The synchronous API uses now the same asynchronous communication and blocks to get synchronous results. Some management operations, like acquiring the host list, are still performed synchronously (blocking the calling thread). They will be refactored to be asynchronous in a future PR.

sonarcloud[bot] commented 11 months ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
4.4% 4.4% Duplication

warning The version of Java (11.0.21) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Read more here

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint