3.00.5

3.00.5.2

New Features

  • Added elastic sizing support for ExclusiveDBConnectionPool. You can configure minimumPoolSize, maximumPoolSize, and idleTimeout through the new constructors or ExclusiveDBConnectionPoolConfig to expand the pool based on task pressure and recycle idle connections back to the minimum size.

  • Added ExclusiveDBConnectionPoolConfig for configuring connection parameters and elastic pool parameters in one configuration class.

  • Added runtime status and configuration query methods to ExclusiveDBConnectionPool: getCurrentConnectionCount(), getMinimumPoolSize(), getMaximumPoolSize(), getIdleTimeout(), getActiveConnectionsCount(), and getIdleConnectionsCount().

Compatibility Notes

  • Starting from Java API version 3.00.5.2, existing ExclusiveDBConnectionPool constructors remain unchanged. The existing count parameter is internally mapped to both minimumPoolSize and maximumPoolSize, so pools created with existing constructors keep the original fixed-size behavior and do not trigger dynamic expansion or idleTimeout recycling.

  • getConnectionCount() returns the current number of live workers/connections. In fixed-size mode, it always equals count. In elastic pool mode, it may change between minimumPoolSize and maximumPoolSize. To get the configured maximum concurrency capacity, use getMaximumPoolSize().

  • The new query methods are defined on the concrete ExclusiveDBConnectionPool class and are not added to the DBConnectionPool interface. To call these methods, declare the pool variable as ExclusiveDBConnectionPool.

3.00.5.1

New Features

  • BasicTable now supports constructors using Java native types.

  • BasicTable now supports the addColumn method for Java native types, allowing columns to be added to the table.

    • public void addColumn(String colName, List<?> col)

    • public void addColumn(String colName, Object[] col)

Compatibility Notes

Starting from Java API version 3.00.5.1, BasicTable adds multiple addColumn overloads. If the second argument col needs to be null, its type must be explicitly declared, for example: (List<?>) null, (Vector) null, or (Object[]) null.

3.00.5.0

New Features

  • Added an asynchronous write utility for the multi-active deployment architecture of DolphinDB.

  • Added interface UpdateListener for StreamingSQLClient to enable real-time monitoring of Streaming SQL subscription data changes and allow users to process the updates as needed.

  • Added method getStreamingSQLSubscriptionInfo for StreamingSQLClient to retrieve subscription information based on queryId.

  • Added method Appendfor BasicAnyVector to append data in forms such as matrix, set, table, and dict.

  • Added method appendEventWithResponse to synchronously wait for the response of a specific event.

Improvement

  • Optimized the EOFException error message when canceling subscriptions.

Issues Fixed

  • Fixed an issue where StreamingSQLClient reported an error when updating tables while writing any data.

  • Fixed a vulnerability in the lz4-java dependency used by the Java API, replacing org.lz4 with at.yawk.lz4.