execute multiple select queries asynchronously and consolidate results · ArcadeData/arcadedb · Discussion #981 (original) (raw)

I'm afraid that's an old implementation.
The latest version of DataBaseAsyncExecutor.query returns void:

  /**
   * Schedules the execution of a query as an idempotent (read only) command by specifying the language and an optional variable array of arguments.
   *
   * @param language The language to use between the supported ones ("sql", "gremlin", "cypher", "graphql", "mongo", etc.)
   * @param query    The command to be interpreted in the specified language as a string
   * @param callback Callback to manage the query result
   * @param args     (optional) Arguments to pass to the command as a variable length array
   */
  void query(String language, String query, AsyncResultsetCallback callback, Object... args);

and onComplete() does not have the ResultSet as an argument.