diff --git a/docs/index.xml b/docs/index.xml index b1eca17d..9feada74 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -58,5 +58,7 @@ Owned types Owned types are allocated by the user and it is their responsibility Previously, we were returning Zenoh structures by value. In Zenoh 1.0.0, a reference to memory must be provided. This allows initializing user allocated structures and frees return value for error codes.Python/docs/migration_1.0/python/Mon, 01 Jan 0001 00:00:00 +0000/docs/migration_1.0/python/Highlights The library has been fully rewritten to use only Rust. It should make no difference for users, except for a significant performance improvement. The API has also been reworked to feel more pythonic, using notably context managers. Context managers and background callbacks You should close the zenoh session after use and the recommended way is through context manager: -import zenoh with zenoh.open(zenoh.Config()) as session: # `session.close()` will be called at the end of the block Session-managed objects like subscribers or queryables can also be managed using context managers:Java/docs/migration_1.0/java/Mon, 01 Jan 0001 00:00:00 +0000/docs/migration_1.0/java/The Java API is still a work in progress. This migration guide will be updated as soon as the new Zenoh-Java API is released!Kotlin/docs/migration_1.0/kotlin/Mon, 01 Jan 0001 00:00:00 +0000/docs/migration_1.0/kotlin/Kotlin API migration guide for 1.0.0 The API has been extensively modified with the following goals in mind: +import zenoh with zenoh.open(zenoh.Config()) as session: # `session.close()` will be called at the end of the block Session-managed objects like subscribers or queryables can also be managed using context managers:Java/docs/migration_1.0/java/Mon, 01 Jan 0001 00:00:00 +0000/docs/migration_1.0/java/Java API migration guide for 1.0.0 The API has been extensively modified with the following goals in mind: +Match the API rework done through the Rust Zenoh API. Abstracting users from the underlying native mechanisms. Making the API more idiomatic, more “imperative”. Remotion of the builder patterns and options parameters Throughout the 0.11.0 API, we were exposing builders, for instance: +session.put(keyExpr, value) .congestionControl(CongestionControl.BLOCK) .priority(Priority.REALTIME) .res() This seemed odd, because “put” is an imperative statement.Kotlin/docs/migration_1.0/kotlin/Mon, 01 Jan 0001 00:00:00 +0000/docs/migration_1.0/kotlin/Kotlin API migration guide for 1.0.0 The API has been extensively modified with the following goals in mind: Enhancing the API to be more idiomatic to Kotlin. Match the API rework done through the Rust Zenoh API. Abstracting users from the underlying native mechanisms Default arguments Throughout the 0.11.0 API we were exposing builders, however we decided to replace all of them with the more Kotlin-idiomatic way of the default arguments. \ No newline at end of file diff --git a/docs/migration_1.0/java/index.html b/docs/migration_1.0/java/index.html index c3339e05..833f05c3 100644 --- a/docs/migration_1.0/java/index.html +++ b/docs/migration_1.0/java/index.html @@ -1,6 +1,77 @@ Java · Zenoh - pub/sub, geo distributed storage, query

Java

The Java API is still a work in progress. This migration guide will be updated as soon as the new Zenoh-Java API is released!

Next up: Kotlin