Interface UcpDataSourceConfig
- All Superinterfaces:
ConnectionConfig, NamedService, Prototype.Api, ProviderConfig
- All Known Implementing Classes:
UcpDataSourceConfig.BuilderBase.UcpDataSourceConfigImpl
UCP specific configuration for
DataSource.
Properties are limited to Map<String,String>.
PoolDataSource.setHostnameResolver(oracle.ucp.jdbc.PoolDataSource.HostnameResolver),
PoolDataSource.setSSLContext(javax.net.ssl.SSLContext)
and PoolDataSource.setTokenSupplier(java.util.function.Supplier)
methods are not supported.
Oracle Database 23ai compliant config.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forUcpDataSourceConfig.static classUcpDataSourceConfig.BuilderBase<BUILDER extends UcpDataSourceConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends UcpDataSourceConfig>Fluent API builder base forUcpDataSourceConfig. -
Method Summary
Modifier and TypeMethodDescriptionSets the abandoned connection timeout.static UcpDataSourceConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static UcpDataSourceConfig.Builderbuilder(UcpDataSourceConfig instance) Create a new fluent API builder from an existing instance.Sets thebooleanvalue for the property that controls the behavior of UCP when a connection is released back to the pool with pending uncommitted changes in an active transaction.Sets the connection factory class name.Sets the connection factory properties on the connection factory.Sets the maximum number of connections that may be harvested when the connection harvesting occurs.Sets the number of available connections below which the connection pool's connection harvesting will occur.Sets the cost value which identifies a connection as "high-cost" for connection labeling.Sets the connection pool name.Sets the connection properties on the connection factory.Sets the connection repurpose threshold for the pool.Sets the connection validation timeout in seconds.Configures how much time a connection request call may wait before it either successfully returns a connection or throws an exception.static UcpDataSourceConfigCreate a new instance from configuration.Set this flag totrueto make UCP use the borrowing thread to create new connections.Sets the database name.Sets the data source name.Sets the data source description.Enables Fast Connection Failover (FCF) for the connection pool accessed using this pool-enabled data source.Sets the high-cost connection reuse threshold for connection labeling.Sets the inactive connection timeout.Sets the initial pool size.Sets the maximum connection reuse count.Sets the maximum connection reuse time in seconds.Sets the max number of connections that can be created per shard from this connection pool.Sets the maximum idle time for available connections in the pool in seconds.Sets the maximum number of connections.Sets the maximum number of statements that may be pooled or cached on a connection.minIdle()Sets the minimum number of idle connections.Sets the minimum number of connections.name()Name of this provider.Sets the data source network protocol.Sets the configuration string used for remote ONS subscription.Sets the database port number.Sets the property cycle in seconds.Sets the number of seconds the driver will wait for a Statement object to execute to the given number of seconds.Sets the read-only instance allowed value on the datasource.roleName()Sets the data source role name.Sets the time to trust an idle connection to skip a validation test in seconds.Sets the database server name.Change the mode of UCP when UCP is using a Sharded Database.Sets the SQL statement to validate the database connection.Sets the timeout check interval in seconds.Sets the maximum time a connection may remain in-use in seconds.default Stringtype()Type of this provider.Makes the pool validate the connection before returning it to the user by calling the JDBC APIisValid.Support for distributed transactions.Methods inherited from interface ConnectionConfig
jdbcDriverClassName, password, url, username
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
type
Type of this provider.- Specified by:
typein interfaceNamedService- Returns:
- provider type - "ucp"
-
name
String name()Name of this provider.- Specified by:
namein interfaceNamedService- Returns:
- the provider name
-
xaDataSource
-
abandonedConnectionTimeout
-
commitOnConnectionReturn
Sets thebooleanvalue for the property that controls the behavior of UCP when a connection is released back to the pool with pending uncommitted changes in an active transaction. SeePoolDataSource.setCommitOnConnectionReturn(boolean)for details.- Returns:
trueto commit,falseto rollback, default value istrue.
-
connectionFactoryClassName
-
connectionFactoryProperties
-
connectionHarvestMaxCount
-
connectionHarvestTriggerCount
Sets the number of available connections below which the connection pool's connection harvesting will occur. SeePoolDataSource.setConnectionHarvestTriggerCount(int)for details.- Returns:
- the number of available connections below which the connection harvesting will occur
-
connectionLabelingHighCost
-
connectionPoolName
-
connectionProperties
-
connectionRepurposeThreshold
-
connectionValidationTimeout
-
connectionWaitDuration
-
createConnectionInBorrowThread
-
databaseName
-
dataSourceName
-
description
-
fastConnectionFailoverEnabled
-
highCostConnectionReuseThreshold
-
inactiveConnectionTimeout
-
initialPoolSize
-
maxConnectionReuseCount
-
maxConnectionReuseTime
-
maxConnectionsPerShard
-
maxIdleTime
-
maxPoolSize
-
minPoolSize
-
maxStatements
-
minIdle
-
networkProtocol
-
onsConfiguration
-
portNumber
-
propertyCycle
-
queryTimeout
-
readOnlyInstanceAllowed
-
roleName
-
secondsToTrustIdleConnection
-
serverName
-
shardingMode
-
sqlForValidateConnection
-
timeoutCheckInterval
-
timeToLiveConnectionTimeout
-
validateConnectionOnBorrow
-