public static final class ConnectionFactoryOptions.Builder extends Object
ConnectionFactoryOptions isntances.
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. |
<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 <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 © 2019. All rights reserved.