Class OracleUcpConfigurator
java.lang.Object
io.micronaut.configuration.jdbc.ucp.OracleUcpConfigurator
@Context
@Internal
@Requires(classes=oracle.ucp.jdbc.PoolDataSource.class) @Requires(beans=OracleUcpConfiguration.class)
public class OracleUcpConfigurator
extends Object
Oracle UCP configuration setting some
oracle.ucp system properties.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitUcp(@Nullable OracleUcpConfiguration oracleUcpConfiguration) Initializes Oracle Universal Connection Pooling (UCP) configuration based on the providedOracleUcpConfiguration.
-
Constructor Details
-
OracleUcpConfigurator
public OracleUcpConfigurator()
-
-
Method Details
-
initUcp
@PostConstruct public void initUcp(@Nullable @Nullable OracleUcpConfiguration oracleUcpConfiguration) Initializes Oracle Universal Connection Pooling (UCP) configuration based on the providedOracleUcpConfiguration. This method sets system properties for UCP configuration if they are not already set. Specifically, it sets the following system properties:oracle.ucp.destroyOnReload: Controls whether to destroy connections on reload.oracle.ucp.createConnectionInBorrowThread: Controls whether the connection pool should create connections in the borrow thread.
- Parameters:
oracleUcpConfiguration- the UCP configuration to apply, or null if no configuration is available
-