public static final class ConnectionFactoryOptions.Builder extends Object
ConnectionFactoryOptions instances.
This class is not threadsafe
| Modifier and Type | Method and Description |
|---|---|
ConnectionFactoryOptions |
build()
Returns a configured
ConnectionFactoryOptions. |
ConnectionFactoryOptions.Builder |
from(ConnectionFactoryOptions connectionFactoryOptions)
Populates the builder with the existing values from a configured
ConnectionFactoryOptions. |
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. |
<T> ConnectionFactoryOptions.Builder |
option(Option<T> option,
T value)
Configure an
Option value. |
String |
toString() |
public ConnectionFactoryOptions build()
ConnectionFactoryOptions.ConnectionFactoryOptionspublic ConnectionFactoryOptions.Builder from(ConnectionFactoryOptions connectionFactoryOptions)
ConnectionFactoryOptions.connectionFactoryOptions - a configured ConnectionFactoryOptionsConnectionFactoryOptions.BuilderIllegalArgumentException - if connectionFactoryOptions is nullpublic ConnectionFactoryOptions.Builder from(ConnectionFactoryOptions connectionFactoryOptions, Predicate<Option<?>> filter)
ConnectionFactoryOptions allowing to filter which values to include.connectionFactoryOptions - a configured ConnectionFactoryOptionsfilter - a filter function to include/exclude existing Options.ConnectionFactoryOptions.BuilderIllegalArgumentException - if connectionFactoryOptions or filter is nullpublic <T> ConnectionFactoryOptions.Builder option(Option<T> option, T value)
Option value.T - the type of the valueoption - the Option to configurevalue - the Option's valueConnectionFactoryOptions.BuilderIllegalArgumentException - if option or value are nullCopyright © 2021. All rights reserved.