Skip to content

Commit 859f341

Browse files
Add JavaDoc for ReactiveJdbcAdapter.getLock()
1 parent db7a18e commit 859f341

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/oracle/r2dbc/impl/ReactiveJdbcAdapter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,14 @@ Publisher<Void> publishClobWrite(
534534
*/
535535
Publisher<Void> publishClobFree(Clob clob) throws R2dbcException;
536536

537+
/**
538+
* Returns the {@link AsyncLock} that guards access to the JDBC
539+
* {@link java.sql.Connection} created by this adapter (with
540+
* {@link #publishConnection(DataSource, Executor)}). This lock may be
541+
* acquired asynchronously, such that threads do not contend for the JDBC
542+
* connection or any object created by that connection.
543+
* @return Lock that guards access to the JDBC connection of this adapter.
544+
*/
537545
AsyncLock getLock();
538546

539547
/**

0 commit comments

Comments
 (0)