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.ConnectionBuilderInterface 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 aPublisherthat publishes a singleConnectionobject with the same state as if it were built by callingbuildon thisConnectionBuilder.OracleCommonConnectionBuilderexecutorOracle(java.util.concurrent.Executor executor)Set theExecutorused for asynchronous tasks by thisConnectionBuilderand anyConnectionobjects built by it.
-
-
-
Method Detail
-
executorOracle
OracleCommonConnectionBuilder executorOracle(java.util.concurrent.Executor executor)
Set the
Executorused for asynchronous tasks by thisConnectionBuilderand anyConnectionobjects 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.SQLExceptionReturns aPublisherthat publishes a singleConnectionobject with the same state as if it were built by callingbuildon thisConnectionBuilder. The returnedPublisherdoes not support multipleSubscribers.- Returns:
- a
Publisherof aConnectionbuilt by thisConnectionBuilder - Throws:
java.sql.SQLException- Since:
- 20
-
-