From 3f5437e9467f2a61f941c0f8e6937581010a83aa Mon Sep 17 00:00:00 2001 From: Rouven Bauer Date: Wed, 27 Sep 2023 10:04:06 +0200 Subject: [PATCH 1/2] Docs: improve wording around transaction timeout Signed-off-by: Grant Lodge <6323995+thelonelyvulpes@users.noreply.github.com> --- driver/src/main/java/org/neo4j/driver/TransactionConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/src/main/java/org/neo4j/driver/TransactionConfig.java b/driver/src/main/java/org/neo4j/driver/TransactionConfig.java index 896fec2962..a44545176b 100644 --- a/driver/src/main/java/org/neo4j/driver/TransactionConfig.java +++ b/driver/src/main/java/org/neo4j/driver/TransactionConfig.java @@ -174,9 +174,9 @@ private Builder() {} * Set the transaction timeout. Transactions that execute longer than the configured timeout will be terminated by the database. * See also {@link #withDefaultTimeout}. *

- * This functionality allows to limit query/transaction execution time. + * This functionality allows user code to limit query/transaction execution time. * The Specified timeout overrides the default timeout configured in the database using the {@code db.transaction.timeout} setting ({@code dbms.transaction.timeout} before Neo4j 5.0). - * Values higher than {@code db.transaction.timeout} will be ignored and will fall back to the default for server versions 4.2 to including 5.2. + * Values higher than {@code db.transaction.timeout} will be ignored and will fall back to the default for server versions between 4.2 and 5.2 (inclusive). *

* The provided value should not represent a negative duration. * {@link Duration#ZERO} will make the transaction execute indefinitely. From 087280dc2e4f1e8009453f69bb11be3d8a6dcd78 Mon Sep 17 00:00:00 2001 From: Rouven Bauer Date: Wed, 27 Sep 2023 12:09:57 +0200 Subject: [PATCH 2/2] Fix capitalization Signed-off-by: Richard Irons <115992270+RichardIrons-neo4j@users.noreply.github.com> --- driver/src/main/java/org/neo4j/driver/TransactionConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/src/main/java/org/neo4j/driver/TransactionConfig.java b/driver/src/main/java/org/neo4j/driver/TransactionConfig.java index a44545176b..201a262af5 100644 --- a/driver/src/main/java/org/neo4j/driver/TransactionConfig.java +++ b/driver/src/main/java/org/neo4j/driver/TransactionConfig.java @@ -175,7 +175,7 @@ private Builder() {} * See also {@link #withDefaultTimeout}. *

* This functionality allows user code to limit query/transaction execution time. - * The Specified timeout overrides the default timeout configured in the database using the {@code db.transaction.timeout} setting ({@code dbms.transaction.timeout} before Neo4j 5.0). + * The specified timeout overrides the default timeout configured in the database using the {@code db.transaction.timeout} setting ({@code dbms.transaction.timeout} before Neo4j 5.0). * Values higher than {@code db.transaction.timeout} will be ignored and will fall back to the default for server versions between 4.2 and 5.2 (inclusive). *

* The provided value should not represent a negative duration.