Skip to content

io.helidon.data.sql.datasource.ucp.UcpDataSourceConfig

Description

UCP specific configuration for javax.sql.DataSource

Configuration options

KeyTypeDescription
connection-repurpose-thresholdIntegerSets the connection repurpose threshold for the pool
min-idleIntegerSets the minimum number of idle connections
role-nameStringSets the data source role name
ons-configurationStringSets the configuration string used for remote ONS subscription
descriptionStringSets the data source description
connection-harvest-max-countIntegerSets the maximum number of connections that may be harvested when the connection harvesting occurs
connection-factory-class-nameStringSets the connection factory class name
connection-harvest-trigger-countIntegerSets the number of available connections below which the connection pool's connection harvesting will occur
query-timeoutIntegerSets the number of seconds the driver will wait for a Statement object to execute to the given number of seconds
max-connection-reuse-countIntegerSets the maximum connection reuse count
read-only-instance-allowedBooleanSets the read-only instance allowed value on the datasource
server-nameStringSets the database server name
timeout-check-intervalIntegerSets the timeout check interval in seconds
max-connections-per-shardIntegerSets the max number of connections that can be created per shard from this connection pool
validate-connection-on-borrowBooleanMakes the pool validate the connection before returning it to the user by calling the JDBC API isValid
max-idle-timeIntegerSets the maximum idle time for available connections in the pool in seconds
max-statementsIntegerSets the maximum number of statements that may be pooled or cached on a connection
connection-wait-durationDurationConfigures how much time a connection request call may wait before it either successfully returns a connection or throws an exception
property-cycleIntegerSets the property cycle in seconds
connection-validation-timeoutIntegerSets the connection validation timeout in seconds
high-cost-connection-reuse-thresholdIntegerSets the high-cost connection reuse threshold for connection labeling
fast-connection-failover-enabledBooleanEnables Fast Connection Failover (FCF) for the connection pool accessed using this pool-enabled data source
sharding-modeBooleanChange the mode of UCP when UCP is using a Sharded Database
connection-labeling-high-costIntegerSets the cost value which identifies a connection as "high-cost" for connection labeling
network-protocolStringSets the data source network protocol
commit-on-connection-returnBooleanSets the boolean value 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
min-pool-sizeIntegerSets the minimum number of connections
initial-pool-sizeIntegerSets the initial pool size
abandoned-connection-timeoutIntegerSets the abandoned connection timeout
seconds-to-trust-idle-connectionIntegerSets the time to trust an idle connection to skip a validation test in seconds
xa-data-sourceBooleanSupport for distributed transactions
port-numberIntegerSets the database port number
connection-propertiesMap<String, String>Sets the connection properties on the connection factory
time-to-live-connection-timeoutIntegerSets the maximum time a connection may remain in-use in seconds
max-pool-sizeIntegerSets the maximum number of connections
connection-factory-propertiesMap<String, String>Sets the connection factory properties on the connection factory
max-connection-reuse-timeLongSets the maximum connection reuse time in seconds
sql-for-validate-connectionStringSets the SQL statement to validate the database connection
database-nameStringSets the database name
connection-pool-nameStringSets the connection pool name
data-source-nameStringSets the data source name
inactive-connection-timeoutIntegerSets the inactive connection timeout
create-connection-in-borrow-threadBooleanSet this flag to true to make UCP use the borrowing thread to create new connections

Usages


See the manifest for all available types.