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
.ConnectionFactoryOptions
public ConnectionFactoryOptions.Builder from(ConnectionFactoryOptions connectionFactoryOptions)
ConnectionFactoryOptions
.connectionFactoryOptions
- a configured ConnectionFactoryOptions
ConnectionFactoryOptions.Builder
IllegalArgumentException
- if connectionFactoryOptions
is null
public ConnectionFactoryOptions.Builder from(ConnectionFactoryOptions connectionFactoryOptions, Predicate<Option<?>> filter)
ConnectionFactoryOptions
allowing to filter
which values to include.connectionFactoryOptions
- a configured ConnectionFactoryOptions
filter
- a filter function
to include/exclude existing Option
s.ConnectionFactoryOptions.Builder
IllegalArgumentException
- if connectionFactoryOptions
or filter
is null
public <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.Builder
IllegalArgumentException
- if option
or value
are null
Copyright © 2021. All rights reserved.