Skip to content

Commit

Permalink
Clarify behavior of executeWriteWithoutResult(). (#1524)
Browse files Browse the repository at this point in the history
* Clarify behavior of `executeWriteWithoutResult()`.

* Update driver/src/main/java/org/neo4j/driver/Session.java

* Update driver/src/main/java/org/neo4j/driver/Session.java

---------

Co-authored-by: Dmitriy Tverdiakov <11927660+injectives@users.noreply.github.com>
  • Loading branch information
stefano-ottolenghi and injectives committed Jan 29, 2024
1 parent e72fa95 commit 43f8a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/src/main/java/org/neo4j/driver/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ default <T> T executeWrite(TransactionCallback<T> callback) {
* The driver will attempt committing the transaction when the provided unit of work completes successfully. Any exception emitted by the unit of work
* will result in a rollback attempt.
* <p>
* The provided unit of work should not return {@link Result} object as it won't be valid outside the scope of the transaction.
* This method works equivalently to {@link #executeWrite(TransactionCallback)}, but does not have a return value.
*
* @param contextConsumer the consumer representing the unit of work.
*/
Expand Down Expand Up @@ -223,7 +223,7 @@ default void executeWriteWithoutResult(Consumer<TransactionContext> contextConsu
* The driver will attempt committing the transaction when the provided unit of work completes successfully. Any exception emitted by the unit of work
* will result in a rollback attempt and abortion of execution unless exception is considered to be valid for retry attempt by the driver.
* <p>
* The provided unit of work should not return {@link Result} object as it won't be valid outside the scope of the transaction.
* This method works equivalently to {@link #executeWrite(TransactionCallback, TransactionConfig)}, but does not have a return value.
*
* @param contextConsumer the consumer representing the unit of work.
* @param config the transaction configuration for the managed transaction.
Expand Down

0 comments on commit 43f8a65

Please sign in to comment.