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 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 provided OracleUcpConfiguration. 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.
      These properties are only set if the corresponding values in the provided configuration are not null and the system properties are not already set or are blank.
      Parameters:
      oracleUcpConfiguration - the UCP configuration to apply, or null if no configuration is available