test_class.declarator: dataSourceSupplierClass       = "some.Class"
test_class.modifier: private final
test_class.original_string: private final String  dataSourceSupplierClass       = "some.Class";
test_class.type: String
test_class.var_name: dataSourceSupplierClass
test_class.declarator: host                          = "somehost"
test_class.modifier: private final
test_class.original_string: private final String  host                          = "somehost";
test_class.type: String
test_class.var_name: host
test_class.declarator: port                          = 999
test_class.modifier: private final
test_class.original_string: private final int     port                          = 999;
test_class.type: int
test_class.var_name: port
test_class.declarator: user                          = "some_user"
test_class.modifier: private final
test_class.original_string: private final String  user                          = "some_user";
test_class.type: String
test_class.var_name: user
test_class.declarator: charset                       = Charset.availableCharsets().values().stream()
        .filter(e -> e != Charset.defaultCharset()).collect(Collectors.toSet()).iterator().next()
test_class.modifier: private final
test_class.original_string: private final Charset charset                       = Charset.availableCharsets().values().stream()
        .filter(e -> e != Charset.defaultCharset()).collect(Collectors.toSet()).iterator().next();
test_class.type: Charset
test_class.var_name: charset
test_class.declarator: password                      = "password"
test_class.modifier: private final
test_class.original_string: private final String  password                      = "password";
test_class.type: String
test_class.var_name: password
test_class.declarator: database                      = "database"
test_class.modifier: private final
test_class.original_string: private final String  database                      = "database";
test_class.type: String
test_class.var_name: database
test_class.declarator: poolMaxSize                   = 100
test_class.modifier: private final
test_class.original_string: private final int     poolMaxSize                   = 100;
test_class.type: int
test_class.var_name: poolMaxSize
test_class.declarator: poolMaxWaiters                = 1000
test_class.modifier: private final
test_class.original_string: private final int     poolMaxWaiters                = 1000;
test_class.type: int
test_class.var_name: poolMaxWaiters
test_class.declarator: poolValidationIntervalSeconds = 1
test_class.modifier: private final
test_class.original_string: private final int     poolValidationIntervalSeconds = 1;
test_class.type: int
test_class.var_name: poolValidationIntervalSeconds
test_class.file: ndbc-api/src/test/java/io/trane/ndbc/ConfigTest.java
test_class.identifier: ConfigTest
test_case.body: @Test(expected = RuntimeException.class)
    public void fromPropertiesIinvalidValue() {
      final Properties p = new Properties();
      p.setProperty("db.dataSourceSupplierClass", dataSourceSupplierClass);
      p.setProperty("db.host", host);
      p.setProperty("db.user", user);
      p.setProperty("db.port", Integer.toString(port));
      p.setProperty("db.poolMaxWaiters", "not an int");
      Config.fromProperties("db", p);
    }
test_case.class_method_signature: ConfigTest.fromPropertiesIinvalidValue()
test_case.full_signature: @Test(expected = RuntimeException.class) public void fromPropertiesIinvalidValue()
test_case.identifier: fromPropertiesIinvalidValue
test_case.invocations: setProperty setProperty setProperty setProperty toString setProperty fromProperties
test_case.modifiers: @Test(expected = RuntimeException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void fromPropertiesIinvalidValue()
focal_class.declarator: dataSourceSupplierClass
focal_class.modifier: private final
focal_class.original_string: private final String                   dataSourceSupplierClass;
focal_class.type: String
focal_class.var_name: dataSourceSupplierClass
focal_class.declarator: host
focal_class.modifier: private final
focal_class.original_string: private final String                   host;
focal_class.type: String
focal_class.var_name: host
focal_class.declarator: port
focal_class.modifier: private final
focal_class.original_string: private final int                      port;
focal_class.type: int
focal_class.var_name: port
focal_class.declarator: user
focal_class.modifier: private final
focal_class.original_string: private final String                   user;
focal_class.type: String
focal_class.var_name: user
focal_class.declarator: charset
focal_class.modifier: private final
focal_class.original_string: private final Charset                  charset;
focal_class.type: Charset
focal_class.var_name: charset
focal_class.declarator: scheduler
focal_class.modifier: private final
focal_class.original_string: private final ScheduledExecutorService scheduler;
focal_class.type: ScheduledExecutorService
focal_class.var_name: scheduler
focal_class.declarator: password
focal_class.modifier: private final
focal_class.original_string: private final Optional<String>         password;
focal_class.type: Optional<String>
focal_class.var_name: password
focal_class.declarator: database
focal_class.modifier: private final
focal_class.original_string: private final Optional<String>         database;
focal_class.type: Optional<String>
focal_class.var_name: database
focal_class.declarator: poolMaxSize
focal_class.modifier: private final
focal_class.original_string: private final Optional<Integer>        poolMaxSize;
focal_class.type: Optional<Integer>
focal_class.var_name: poolMaxSize
focal_class.declarator: poolMaxWaiters
focal_class.modifier: private final
focal_class.original_string: private final Optional<Integer>        poolMaxWaiters;
focal_class.type: Optional<Integer>
focal_class.var_name: poolMaxWaiters
focal_class.declarator: connectionTimeout
focal_class.modifier: private final
focal_class.original_string: private final Optional<Duration>       connectionTimeout;
focal_class.type: Optional<Duration>
focal_class.var_name: connectionTimeout
focal_class.declarator: queryTimeout
focal_class.modifier: private final
focal_class.original_string: private final Optional<Duration>       queryTimeout;
focal_class.type: Optional<Duration>
focal_class.var_name: queryTimeout
focal_class.declarator: poolValidationInterval
focal_class.modifier: private final
focal_class.original_string: private final Optional<Duration>       poolValidationInterval;
focal_class.type: Optional<Duration>
focal_class.var_name: poolValidationInterval
focal_class.declarator: encodingClasses
focal_class.modifier: private final
focal_class.original_string: private final Optional<Set<String>>    encodingClasses;
focal_class.type: Optional<Set<String>>
focal_class.var_name: encodingClasses
focal_class.declarator: nioThreads
focal_class.modifier: private final
focal_class.original_string: private final Optional<Integer>        nioThreads;
focal_class.type: Optional<Integer>
focal_class.var_name: nioThreads
focal_class.declarator: ssl
focal_class.modifier: private final
focal_class.original_string: private final Optional<SSL>            ssl;
focal_class.type: Optional<SSL>
focal_class.var_name: ssl
focal_class.declarator: embedded
focal_class.modifier: private final
focal_class.original_string: private final Optional<Embedded>       embedded;
focal_class.type: Optional<Embedded>
focal_class.var_name: embedded
focal_class.file: ndbc-api/src/main/java/io/trane/ndbc/Config.java
focal_class.identifier: Config
focal_class.class_method_signature: Config.fromSystemProperties(final String prefix)
focal_class.full_signature: public static final Config fromSystemProperties(final String prefix)
focal_class.identifier: fromSystemProperties
focal_class.modifiers: public static final
focal_class.parameters: (final String prefix)
focal_class.return: Config
focal_class.signature: Config fromSystemProperties(final String prefix)
focal_class.class_method_signature: Config.fromPropertiesFile(final String prefix, final String file)
focal_class.full_signature: public static Config fromPropertiesFile(final String prefix, final String file)
focal_class.identifier: fromPropertiesFile
focal_class.modifiers: public static
focal_class.parameters: (final String prefix, final String file)
focal_class.return: Config
focal_class.signature: Config fromPropertiesFile(final String prefix, final String file)
focal_class.class_method_signature: Config.fromProperties(final String prefix, final Properties properties)
focal_class.full_signature: public static final Config fromProperties(final String prefix, final Properties properties)
focal_class.identifier: fromProperties
focal_class.modifiers: public static final
focal_class.parameters: (final String prefix, final Properties properties)
focal_class.return: Config
focal_class.signature: Config fromProperties(final String prefix, final Properties properties)
focal_class.class_method_signature: Config.fromJdbcUrl(final String url)
focal_class.full_signature: public static final Config fromJdbcUrl(final String url)
focal_class.identifier: fromJdbcUrl
focal_class.modifiers: public static final
focal_class.parameters: (final String url)
focal_class.return: Config
focal_class.signature: Config fromJdbcUrl(final String url)
focal_class.class_method_signature: Config.create(final String dataSourceSupplierClass, final String host,
        final int port, final String user)
focal_class.full_signature: public static final Config create(final String dataSourceSupplierClass, final String host,
        final int port, final String user)
focal_class.identifier: create
focal_class.modifiers: public static final
focal_class.parameters: (final String dataSourceSupplierClass, final String host,
        final int port, final String user)
focal_class.return: Config
focal_class.signature: Config create(final String dataSourceSupplierClass, final String host,
        final int port, final String user)
focal_class.class_method_signature: Config.getRequiredProperty(final String prefix, final Properties properties, final String name,
        final Function<String, T> parser)
focal_class.full_signature: private static final T getRequiredProperty(final String prefix, final Properties properties, final String name,
        final Function<String, T> parser)
focal_class.identifier: getRequiredProperty
focal_class.modifiers: private static final
focal_class.parameters: (final String prefix, final Properties properties, final String name,
        final Function<String, T> parser)
focal_class.return: T
focal_class.signature: T getRequiredProperty(final String prefix, final Properties properties, final String name,
        final Function<String, T> parser)
focal_class.class_method_signature: Config.getRequiredProperty(final String prefix, final Properties properties,
        final String name)
focal_class.full_signature: private static final String getRequiredProperty(final String prefix, final Properties properties,
        final String name)
focal_class.identifier: getRequiredProperty
focal_class.modifiers: private static final
focal_class.parameters: (final String prefix, final Properties properties,
        final String name)
focal_class.return: String
focal_class.signature: String getRequiredProperty(final String prefix, final Properties properties,
        final String name)
focal_class.class_method_signature: Config.getProperty(final String prefix, final Properties properties,
        final String name, final Function<String, T> parser)
focal_class.full_signature: private static final Optional<T> getProperty(final String prefix, final Properties properties,
        final String name, final Function<String, T> parser)
focal_class.identifier: getProperty
focal_class.modifiers: private static final
focal_class.parameters: (final String prefix, final Properties properties,
        final String name, final Function<String, T> parser)
focal_class.return: Optional<T>
focal_class.signature: Optional<T> getProperty(final String prefix, final Properties properties,
        final String name, final Function<String, T> parser)
focal_class.class_method_signature: Config.getProperty(final String prefix, final Properties properties,
        final String name)
focal_class.full_signature: private static final Optional<String> getProperty(final String prefix, final Properties properties,
        final String name)
focal_class.identifier: getProperty
focal_class.modifiers: private static final
focal_class.parameters: (final String prefix, final Properties properties,
        final String name)
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getProperty(final String prefix, final Properties properties,
        final String name)
focal_class.class_method_signature: Config.Config(final String dataSourceSupplierClass, final String host, final int port, final String user,
        final Charset charset, final ScheduledExecutorService scheduler, final Optional<String> password,
        final Optional<String> database, final Optional<Integer> poolMaxSize, final Optional<Integer> poolMaxWaiters,
        final Optional<Duration> connectionTimeout, final Optional<Duration> queryTimeout,
        final Optional<Duration> poolValidationInterval, final Optional<Set<String>> encodingClasses,
        final Optional<Integer> nioThreads, final Optional<SSL> ssl, final Optional<Embedded> embeddedDatabase)
focal_class.full_signature: private  Config(final String dataSourceSupplierClass, final String host, final int port, final String user,
        final Charset charset, final ScheduledExecutorService scheduler, final Optional<String> password,
        final Optional<String> database, final Optional<Integer> poolMaxSize, final Optional<Integer> poolMaxWaiters,
        final Optional<Duration> connectionTimeout, final Optional<Duration> queryTimeout,
        final Optional<Duration> poolValidationInterval, final Optional<Set<String>> encodingClasses,
        final Optional<Integer> nioThreads, final Optional<SSL> ssl, final Optional<Embedded> embeddedDatabase)
focal_class.identifier: Config
focal_class.modifiers: private
focal_class.parameters: (final String dataSourceSupplierClass, final String host, final int port, final String user,
        final Charset charset, final ScheduledExecutorService scheduler, final Optional<String> password,
        final Optional<String> database, final Optional<Integer> poolMaxSize, final Optional<Integer> poolMaxWaiters,
        final Optional<Duration> connectionTimeout, final Optional<Duration> queryTimeout,
        final Optional<Duration> poolValidationInterval, final Optional<Set<String>> encodingClasses,
        final Optional<Integer> nioThreads, final Optional<SSL> ssl, final Optional<Embedded> embeddedDatabase)
focal_class.signature:  Config(final String dataSourceSupplierClass, final String host, final int port, final String user,
        final Charset charset, final ScheduledExecutorService scheduler, final Optional<String> password,
        final Optional<String> database, final Optional<Integer> poolMaxSize, final Optional<Integer> poolMaxWaiters,
        final Optional<Duration> connectionTimeout, final Optional<Duration> queryTimeout,
        final Optional<Duration> poolValidationInterval, final Optional<Set<String>> encodingClasses,
        final Optional<Integer> nioThreads, final Optional<SSL> ssl, final Optional<Embedded> embeddedDatabase)
focal_class.class_method_signature: Config.dataSourceSupplierClass()
focal_class.full_signature: public final String dataSourceSupplierClass()
focal_class.identifier: dataSourceSupplierClass
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String dataSourceSupplierClass()
focal_class.class_method_signature: Config.host()
focal_class.full_signature: public final String host()
focal_class.identifier: host
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String host()
focal_class.class_method_signature: Config.port()
focal_class.full_signature: public final int port()
focal_class.identifier: port
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int port()
focal_class.class_method_signature: Config.port(final int port)
focal_class.full_signature: public final Config port(final int port)
focal_class.identifier: port
focal_class.modifiers: public final
focal_class.parameters: (final int port)
focal_class.return: Config
focal_class.signature: Config port(final int port)
focal_class.class_method_signature: Config.user()
focal_class.full_signature: public final String user()
focal_class.identifier: user
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String user()
focal_class.class_method_signature: Config.charset()
focal_class.full_signature: public final Charset charset()
focal_class.identifier: charset
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Charset
focal_class.signature: Charset charset()
focal_class.class_method_signature: Config.charset(final Charset charset)
focal_class.full_signature: public final Config charset(final Charset charset)
focal_class.identifier: charset
focal_class.modifiers: public final
focal_class.parameters: (final Charset charset)
focal_class.return: Config
focal_class.signature: Config charset(final Charset charset)
focal_class.class_method_signature: Config.scheduler()
focal_class.full_signature: public final ScheduledExecutorService scheduler()
focal_class.identifier: scheduler
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: ScheduledExecutorService
focal_class.signature: ScheduledExecutorService scheduler()
focal_class.class_method_signature: Config.scheduler(final ScheduledExecutorService scheduler)
focal_class.full_signature: public final Config scheduler(final ScheduledExecutorService scheduler)
focal_class.identifier: scheduler
focal_class.modifiers: public final
focal_class.parameters: (final ScheduledExecutorService scheduler)
focal_class.return: Config
focal_class.signature: Config scheduler(final ScheduledExecutorService scheduler)
focal_class.class_method_signature: Config.password()
focal_class.full_signature: public final Optional<String> password()
focal_class.identifier: password
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> password()
focal_class.class_method_signature: Config.password(final String password)
focal_class.full_signature: public final Config password(final String password)
focal_class.identifier: password
focal_class.modifiers: public final
focal_class.parameters: (final String password)
focal_class.return: Config
focal_class.signature: Config password(final String password)
focal_class.class_method_signature: Config.password(final Optional<String> password)
focal_class.full_signature: public final Config password(final Optional<String> password)
focal_class.identifier: password
focal_class.modifiers: public final
focal_class.parameters: (final Optional<String> password)
focal_class.return: Config
focal_class.signature: Config password(final Optional<String> password)
focal_class.class_method_signature: Config.database()
focal_class.full_signature: public final Optional<String> database()
focal_class.identifier: database
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> database()
focal_class.class_method_signature: Config.database(final String database)
focal_class.full_signature: public final Config database(final String database)
focal_class.identifier: database
focal_class.modifiers: public final
focal_class.parameters: (final String database)
focal_class.return: Config
focal_class.signature: Config database(final String database)
focal_class.class_method_signature: Config.database(final Optional<String> database)
focal_class.full_signature: public final Config database(final Optional<String> database)
focal_class.identifier: database
focal_class.modifiers: public final
focal_class.parameters: (final Optional<String> database)
focal_class.return: Config
focal_class.signature: Config database(final Optional<String> database)
focal_class.class_method_signature: Config.poolMaxSize()
focal_class.full_signature: public final Optional<Integer> poolMaxSize()
focal_class.identifier: poolMaxSize
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<Integer>
focal_class.signature: Optional<Integer> poolMaxSize()
focal_class.class_method_signature: Config.poolMaxSize(final int poolMaxSize)
focal_class.full_signature: public final Config poolMaxSize(final int poolMaxSize)
focal_class.identifier: poolMaxSize
focal_class.modifiers: public final
focal_class.parameters: (final int poolMaxSize)
focal_class.return: Config
focal_class.signature: Config poolMaxSize(final int poolMaxSize)
focal_class.class_method_signature: Config.poolMaxSize(final Optional<Integer> poolMaxSize)
focal_class.full_signature: public final Config poolMaxSize(final Optional<Integer> poolMaxSize)
focal_class.identifier: poolMaxSize
focal_class.modifiers: public final
focal_class.parameters: (final Optional<Integer> poolMaxSize)
focal_class.return: Config
focal_class.signature: Config poolMaxSize(final Optional<Integer> poolMaxSize)
focal_class.class_method_signature: Config.poolMaxWaiters()
focal_class.full_signature: public final Optional<Integer> poolMaxWaiters()
focal_class.identifier: poolMaxWaiters
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<Integer>
focal_class.signature: Optional<Integer> poolMaxWaiters()
focal_class.class_method_signature: Config.poolMaxWaiters(final int poolMaxWaiters)
focal_class.full_signature: public final Config poolMaxWaiters(final int poolMaxWaiters)
focal_class.identifier: poolMaxWaiters
focal_class.modifiers: public final
focal_class.parameters: (final int poolMaxWaiters)
focal_class.return: Config
focal_class.signature: Config poolMaxWaiters(final int poolMaxWaiters)
focal_class.class_method_signature: Config.poolMaxWaiters(final Optional<Integer> poolMaxWaiters)
focal_class.full_signature: public final Config poolMaxWaiters(final Optional<Integer> poolMaxWaiters)
focal_class.identifier: poolMaxWaiters
focal_class.modifiers: public final
focal_class.parameters: (final Optional<Integer> poolMaxWaiters)
focal_class.return: Config
focal_class.signature: Config poolMaxWaiters(final Optional<Integer> poolMaxWaiters)
focal_class.class_method_signature: Config.connectionTimeout()
focal_class.full_signature: public final Optional<Duration> connectionTimeout()
focal_class.identifier: connectionTimeout
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<Duration>
focal_class.signature: Optional<Duration> connectionTimeout()
focal_class.class_method_signature: Config.connectionTimeout(final Duration connectionTimeout)
focal_class.full_signature: public final Config connectionTimeout(final Duration connectionTimeout)
focal_class.identifier: connectionTimeout
focal_class.modifiers: public final
focal_class.parameters: (final Duration connectionTimeout)
focal_class.return: Config
focal_class.signature: Config connectionTimeout(final Duration connectionTimeout)
focal_class.class_method_signature: Config.connectionTimeout(final Optional<Duration> connectionTimeout)
focal_class.full_signature: public final Config connectionTimeout(final Optional<Duration> connectionTimeout)
focal_class.identifier: connectionTimeout
focal_class.modifiers: public final
focal_class.parameters: (final Optional<Duration> connectionTimeout)
focal_class.return: Config
focal_class.signature: Config connectionTimeout(final Optional<Duration> connectionTimeout)
focal_class.class_method_signature: Config.queryTimeout()
focal_class.full_signature: public final Optional<Duration> queryTimeout()
focal_class.identifier: queryTimeout
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<Duration>
focal_class.signature: Optional<Duration> queryTimeout()
focal_class.class_method_signature: Config.queryTimeout(final Duration queryTimeout)
focal_class.full_signature: public final Config queryTimeout(final Duration queryTimeout)
focal_class.identifier: queryTimeout
focal_class.modifiers: public final
focal_class.parameters: (final Duration queryTimeout)
focal_class.return: Config
focal_class.signature: Config queryTimeout(final Duration queryTimeout)
focal_class.class_method_signature: Config.queryTimeout(final Optional<Duration> queryTimeout)
focal_class.full_signature: public final Config queryTimeout(final Optional<Duration> queryTimeout)
focal_class.identifier: queryTimeout
focal_class.modifiers: public final
focal_class.parameters: (final Optional<Duration> queryTimeout)
focal_class.return: Config
focal_class.signature: Config queryTimeout(final Optional<Duration> queryTimeout)
focal_class.class_method_signature: Config.poolValidationInterval()
focal_class.full_signature: public final Optional<Duration> poolValidationInterval()
focal_class.identifier: poolValidationInterval
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<Duration>
focal_class.signature: Optional<Duration> poolValidationInterval()
focal_class.class_method_signature: Config.poolValidationInterval(final Duration poolValidationInterval)
focal_class.full_signature: public final Config poolValidationInterval(final Duration poolValidationInterval)
focal_class.identifier: poolValidationInterval
focal_class.modifiers: public final
focal_class.parameters: (final Duration poolValidationInterval)
focal_class.return: Config
focal_class.signature: Config poolValidationInterval(final Duration poolValidationInterval)
focal_class.class_method_signature: Config.poolValidationInterval(final Optional<Duration> poolValidationInterval)
focal_class.full_signature: public final Config poolValidationInterval(final Optional<Duration> poolValidationInterval)
focal_class.identifier: poolValidationInterval
focal_class.modifiers: public final
focal_class.parameters: (final Optional<Duration> poolValidationInterval)
focal_class.return: Config
focal_class.signature: Config poolValidationInterval(final Optional<Duration> poolValidationInterval)
focal_class.class_method_signature: Config.encodingClasses()
focal_class.full_signature: public final Optional<Set<String>> encodingClasses()
focal_class.identifier: encodingClasses
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<Set<String>>
focal_class.signature: Optional<Set<String>> encodingClasses()
focal_class.class_method_signature: Config.encodingClasses(final Set<String> encodingClasses)
focal_class.full_signature: public final Config encodingClasses(final Set<String> encodingClasses)
focal_class.identifier: encodingClasses
focal_class.modifiers: public final
focal_class.parameters: (final Set<String> encodingClasses)
focal_class.return: Config
focal_class.signature: Config encodingClasses(final Set<String> encodingClasses)
focal_class.class_method_signature: Config.encodingClasses(final Optional<Set<String>> encodingClasses)
focal_class.full_signature: public final Config encodingClasses(final Optional<Set<String>> encodingClasses)
focal_class.identifier: encodingClasses
focal_class.modifiers: public final
focal_class.parameters: (final Optional<Set<String>> encodingClasses)
focal_class.return: Config
focal_class.signature: Config encodingClasses(final Optional<Set<String>> encodingClasses)
focal_class.class_method_signature: Config.addEncodingClass(final String encodingClass)
focal_class.full_signature: public final Config addEncodingClass(final String encodingClass)
focal_class.identifier: addEncodingClass
focal_class.modifiers: public final
focal_class.parameters: (final String encodingClass)
focal_class.return: Config
focal_class.signature: Config addEncodingClass(final String encodingClass)
focal_class.class_method_signature: Config.nioThreads()
focal_class.full_signature: public final Optional<Integer> nioThreads()
focal_class.identifier: nioThreads
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<Integer>
focal_class.signature: Optional<Integer> nioThreads()
focal_class.class_method_signature: Config.nioThreads(final int nioThreads)
focal_class.full_signature: public final Config nioThreads(final int nioThreads)
focal_class.identifier: nioThreads
focal_class.modifiers: public final
focal_class.parameters: (final int nioThreads)
focal_class.return: Config
focal_class.signature: Config nioThreads(final int nioThreads)
focal_class.class_method_signature: Config.nioThreads(final Optional<Integer> nioThreads)
focal_class.full_signature: public final Config nioThreads(final Optional<Integer> nioThreads)
focal_class.identifier: nioThreads
focal_class.modifiers: public final
focal_class.parameters: (final Optional<Integer> nioThreads)
focal_class.return: Config
focal_class.signature: Config nioThreads(final Optional<Integer> nioThreads)
focal_class.class_method_signature: Config.ssl()
focal_class.full_signature: public final Optional<SSL> ssl()
focal_class.identifier: ssl
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<SSL>
focal_class.signature: Optional<SSL> ssl()
focal_class.class_method_signature: Config.ssl(final SSL ssl)
focal_class.full_signature: public final Config ssl(final SSL ssl)
focal_class.identifier: ssl
focal_class.modifiers: public final
focal_class.parameters: (final SSL ssl)
focal_class.return: Config
focal_class.signature: Config ssl(final SSL ssl)
focal_class.class_method_signature: Config.ssl(final Optional<SSL> ssl)
focal_class.full_signature: public final Config ssl(final Optional<SSL> ssl)
focal_class.identifier: ssl
focal_class.modifiers: public final
focal_class.parameters: (final Optional<SSL> ssl)
focal_class.return: Config
focal_class.signature: Config ssl(final Optional<SSL> ssl)
focal_class.class_method_signature: Config.embedded()
focal_class.full_signature: public final Optional<Embedded> embedded()
focal_class.identifier: embedded
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<Embedded>
focal_class.signature: Optional<Embedded> embedded()
focal_class.class_method_signature: Config.embedded(final String supplierClass)
focal_class.full_signature: public final Config embedded(final String supplierClass)
focal_class.identifier: embedded
focal_class.modifiers: public final
focal_class.parameters: (final String supplierClass)
focal_class.return: Config
focal_class.signature: Config embedded(final String supplierClass)
focal_class.class_method_signature: Config.embedded(final String supplierClass, final Optional<String> version)
focal_class.full_signature: public final Config embedded(final String supplierClass, final Optional<String> version)
focal_class.identifier: embedded
focal_class.modifiers: public final
focal_class.parameters: (final String supplierClass, final Optional<String> version)
focal_class.return: Config
focal_class.signature: Config embedded(final String supplierClass, final Optional<String> version)
focal_class.class_method_signature: Config.embedded(final Embedded embedded)
focal_class.full_signature: public final Config embedded(final Embedded embedded)
focal_class.identifier: embedded
focal_class.modifiers: public final
focal_class.parameters: (final Embedded embedded)
focal_class.return: Config
focal_class.signature: Config embedded(final Embedded embedded)
focal_class.class_method_signature: Config.embedded(final Optional<Embedded> embedded)
focal_class.full_signature: public final Config embedded(final Optional<Embedded> embedded)
focal_class.identifier: embedded
focal_class.modifiers: public final
focal_class.parameters: (final Optional<Embedded> embedded)
focal_class.return: Config
focal_class.signature: Config embedded(final Optional<Embedded> embedded)
focal_class.class_method_signature: Config.loadCustomEncodings()
focal_class.full_signature: public final Optional<List<T>> loadCustomEncodings()
focal_class.identifier: loadCustomEncodings
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<List<T>>
focal_class.signature: Optional<List<T>> loadCustomEncodings()
focal_class.class_method_signature: Config.loadEncoding(final String cls)
focal_class.full_signature: @SuppressWarnings("unchecked") private final T loadEncoding(final String cls)
focal_class.identifier: loadEncoding
focal_class.modifiers: @SuppressWarnings("unchecked") private final
focal_class.parameters: (final String cls)
focal_class.return: T
focal_class.signature: T loadEncoding(final String cls)
focal_method.body: public static final Config fromProperties(final String prefix, final Properties properties) {
  
      final String dataSourceSupplierClass = getRequiredProperty(prefix, properties, "dataSourceSupplierClass");
      final String host = getRequiredProperty(prefix, properties, "host");
      final int port = getRequiredProperty(prefix, properties, "port", Integer::parseInt);
      final String user = getRequiredProperty(prefix, properties, "user");
  
      Config config = Config.create(dataSourceSupplierClass, host, port, user);
  
      config = config.charset(getProperty(prefix, properties, "charset", Charset::forName)
          .orElse(Charset.defaultCharset()));
  
      config = config.password(getProperty(prefix, properties, "password"));
      config = config.database(getProperty(prefix, properties, "database"));
      config = config.poolMaxSize(getProperty(prefix, properties, "poolMaxSize", Integer::parseInt));
      config = config.poolMaxWaiters(getProperty(prefix, properties, "poolMaxWaiters", Integer::parseInt));
  
      config = config.poolValidationInterval(getProperty(prefix, properties, "poolValidationIntervalSeconds",
          s -> Duration.ofSeconds(Long.parseLong(s))));
  
      config = config.connectionTimeout(getProperty(prefix, properties, "connectionTimeoutSeconds",
          s -> Duration.ofSeconds(Long.parseLong(s))));
  
      config = config.queryTimeout(getProperty(prefix, properties, "queryTimeoutSeconds",
          s -> Duration.ofSeconds(Long.parseLong(s))));
  
      config = config.encodingClasses(getProperty(prefix, properties, "encodingClasses")
          .map(k -> Stream.of(k.split(",")).filter(s -> !s.isEmpty()).collect(Collectors.toSet())));
  
      config = config.ssl(getProperty(prefix, properties, "ssl.mode", SSL.Mode::valueOf).map(sslMode -> {
        final SSL ssl = SSL.create(sslMode);
        return getProperty(prefix, properties, "ssl.rootCert").map(rootCert -> ssl.rootCert(new File(rootCert)))
            .orElse(ssl);
      }));
  
      config = config.embedded(getProperty(prefix, properties, "embedded.supplierClass")
          .map(cls -> Embedded.create(cls, getProperty(prefix, properties, "embedded.version"))));
  
      return config;
    }
focal_method.class_method_signature: Config.fromProperties(final String prefix, final Properties properties)
focal_method.full_signature: public static final Config fromProperties(final String prefix, final Properties properties)
focal_method.identifier: fromProperties
focal_method.invocations: getRequiredProperty getRequiredProperty getRequiredProperty getRequiredProperty create charset orElse getProperty defaultCharset password getProperty database getProperty poolMaxSize getProperty poolMaxWaiters getProperty poolValidationInterval getProperty ofSeconds parseLong connectionTimeout getProperty ofSeconds parseLong queryTimeout getProperty ofSeconds parseLong encodingClasses map getProperty collect filter of split isEmpty toSet ssl map getProperty create orElse map getProperty rootCert embedded map getProperty create getProperty
focal_method.modifiers: public static final
focal_method.parameters: (final String prefix, final Properties properties)
focal_method.return: Config
focal_method.signature: Config fromProperties(final String prefix, final Properties properties)