Skip to content

Releases: dolphindb/api-java

3.00.5.2

30 Jun 03:40

Choose a tag to compare

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

13 May 02:38

Choose a tag to compare

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.

Compatibility Notes

Starting from Java API version 3.00.5.1, the following addColumn methods were added:

public void addColumn(String colName, List<?> col)
public void addColumn(String colName, Object[] col)

Previously, BasicTable only provided public void addColumn(String colName, Vector col)

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

25 Feb 02:09

Choose a tag to compare

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.

3.00.4.2

28 Nov 06:46

Choose a tag to compare

Issues Fixed

  • Fixed a race condition in the ThreadPooledClient.unsubscribeInternal method to prevent MessageParser from triggering an unnecessary reconnection after receiving an EOF signal during unsubscription.

3.00.4.1

20 Oct 02:42

Choose a tag to compare

New Features

  • Added a filter parameter to EventClient.subscribe to allow subscribing only to specific events based on filtering conditions.

Issues Fixes

  • Fixed an issue where serialization failed for BasicDictionary objects whose values were not scalars.

  • Fixed an issue where TopicPoller.poll returned an empty list when the timeout parameter was set to 0.

3.00.4.0

11 Sep 08:00

Choose a tag to compare

New Features

  • Added Util.createVector(type, size, capacity) for creating vectors.
  • Added new vector creation methods, such as BasicIntVector(int size, int capacity), to specify the initial size and capacity.
  • Added support for setting and adding values in vectors using Java primitive types.
  • Added support for creating Decimal vectors directly from a list of strings (List<String>).
  • Added support in MTW for inserting data into stream tables in Orca.
  • Added support for StreamingSQLClient, enabling declaration of streaming SQL tables, registration of streaming SQL queries, and subscription to streaming SQL query results.
  • Added support in BasicAnyVector for the Append method to add single values or entire vectors, and for the set method to modify elements at any position.
  • Added method getScale to BasicArrayVector interface for obtaining the scale of a DECIMAL array vector.

Fixed Issues

  • Fixed an issue where constructing BasicDecimal32Vector with Integer.MIN_VALUE as null value caused errors.

3.00.3.2

18 Aug 07:06

Choose a tag to compare

Issues Fixed

  • Fixed an issue with vector serialization and deserialization during CEP event sending and subscription.

3.00.3.1

30 Jul 05:38

Choose a tag to compare

Issues Fixed

  • Fixed an issue where the Java API failed to reconnect when the DolphinDB server node was disconnected and reconnect was enabled.
  • Fixed an issue where the Java process could crash during node failover when enableHighAvailability=true.
  • Fixed an issue where the process would hang when the script contained null characters.

3.00.3.0

20 May 01:20

Choose a tag to compare

Improvements

  • Reduced the log level of initialization validation messages from ERROR to WARN.

3.00.2.6

10 Apr 05:49

Choose a tag to compare

New Features

  • Added support for configuring parameters of DBConnection.connect via ConnectConfig.