Modifier and Type | Field and Description |
---|---|
static Option<Duration> |
ConnectionFactoryOptions.CONNECT_TIMEOUT
Connection timeout.
|
static Option<String> |
ConnectionFactoryOptions.DATABASE
Initial database name.
|
static Option<String> |
ConnectionFactoryOptions.DRIVER
Driver name.
|
static Option<String> |
ConnectionFactoryOptions.HOST
Endpoint host name.
|
static Option<CharSequence> |
ConnectionFactoryOptions.PASSWORD
Password for authentication.
|
static Option<Integer> |
ConnectionFactoryOptions.PORT
Endpoint port number.
|
static Option<String> |
ConnectionFactoryOptions.PROTOCOL
Driver protocol name.
|
static Option<Boolean> |
ConnectionFactoryOptions.SSL
Whether to require SSL.
|
static Option<String> |
ConnectionFactoryOptions.USER
User for authentication.
|
Modifier and Type | Method and Description |
---|---|
static <T> Option<T> |
Option.sensitiveValueOf(String name)
Returns a constant singleton instance of the sensitive option.
|
static <T> Option<T> |
Option.valueOf(String name)
Returns a constant singleton instance of the option.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
ConnectionFactoryOptions.getRequiredValue(Option<T> option)
Returns the value for an option if it exists.
|
<T> T |
ConnectionFactoryOptions.getValue(Option<T> option)
Returns the value for an option if it exists, otherwise
null . |
boolean |
ConnectionFactoryOptions.hasOption(Option<?> option)
Returns
true if the option exists, otherwise false . |
<T> ConnectionFactoryOptions.Builder |
ConnectionFactoryOptions.Builder.option(Option<T> option,
T value)
Configure an
Option value. |
Modifier and Type | Method and Description |
---|---|
ConnectionFactoryOptions.Builder |
ConnectionFactoryOptions.Builder.from(ConnectionFactoryOptions connectionFactoryOptions,
Predicate<Option<?>> filter)
Populates the builder with the existing values from a configured
ConnectionFactoryOptions allowing to filter which values to include. |
Copyright © 2019. All rights reserved.