Package oracle.jdbc
Interface OracleCommonConnectionBuilder
-
- All Superinterfaces:
java.sql.ConnectionBuilder
- All Known Subinterfaces:
OracleConnectionBuilder
- All Known Implementing Classes:
OracleConnectionBuilderImpl
public interface OracleCommonConnectionBuilder extends java.sql.ConnectionBuilder
Interface that defines common methods.- Since:
- 23
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.Flow.Publisher<? extends java.sql.Connection>
buildConnectionPublisherOracle()
Returns aPublisher
that publishes a singleConnection
object with the same state as if it were built by callingbuild
on thisConnectionBuilder
.OracleCommonConnectionBuilder
executorOracle(java.util.concurrent.Executor executor)
Set theExecutor
used for asynchronous tasks by thisConnectionBuilder
and anyConnection
objects built by it.
-
-
-
Method Detail
-
executorOracle
OracleCommonConnectionBuilder executorOracle(java.util.concurrent.Executor executor)
Set the
Executor
used for asynchronous tasks by thisConnectionBuilder
and anyConnection
objects built by it. The default value isForkJoinPool.commonPool()
.- Parameters:
executor
- an Executor to use for asynchronous tasks. Not null.- Returns:
- this OracleCommonConnectionBuilder
- Since:
- 20
-
buildConnectionPublisherOracle
java.util.concurrent.Flow.Publisher<? extends java.sql.Connection> buildConnectionPublisherOracle() throws java.sql.SQLException
Returns aPublisher
that publishes a singleConnection
object with the same state as if it were built by callingbuild
on thisConnectionBuilder
. The returnedPublisher
does not support multipleSubscribers
.- Returns:
- a
Publisher
of aConnection
built by thisConnectionBuilder
- Throws:
java.sql.SQLException
- Since:
- 20
-
-