Package org.ldaptive
Class ConnectionConfig.Builder
- java.lang.Object
-
- org.ldaptive.ConnectionConfig.Builder
-
- Enclosing class:
- ConnectionConfig
public static class ConnectionConfig.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private ConnectionConfig
object
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionConfig.Builder
autoReconnect(boolean b)
ConnectionConfig.Builder
autoReconnectCondition(Predicate<RetryMetadata> predicate)
ConnectionConfig.Builder
autoReplay(boolean b)
ConnectionConfig
build()
ConnectionConfig.Builder
connectionInitializers(ConnectionInitializer... initializers)
ConnectionConfig.Builder
connectionStrategy(ConnectionStrategy strategy)
ConnectionConfig.Builder
connectionValidator(ConnectionValidator validator)
ConnectionConfig.Builder
connectTimeout(Duration timeout)
ConnectionConfig.Builder
reconnectTimeout(Duration timeout)
ConnectionConfig.Builder
responseTimeout(Duration timeout)
ConnectionConfig.Builder
sslConfig(SslConfig config)
ConnectionConfig.Builder
startTLSTimeout(Duration timeout)
ConnectionConfig.Builder
transportOption(String id, Object value)
ConnectionConfig.Builder
url(String url)
ConnectionConfig.Builder
useStartTLS(boolean b)
-
-
-
Field Detail
-
object
private final ConnectionConfig object
-
-
Method Detail
-
url
public ConnectionConfig.Builder url(String url)
-
connectTimeout
public ConnectionConfig.Builder connectTimeout(Duration timeout)
-
responseTimeout
public ConnectionConfig.Builder responseTimeout(Duration timeout)
-
startTLSTimeout
public ConnectionConfig.Builder startTLSTimeout(Duration timeout)
-
reconnectTimeout
public ConnectionConfig.Builder reconnectTimeout(Duration timeout)
-
autoReconnect
public ConnectionConfig.Builder autoReconnect(boolean b)
-
autoReconnectCondition
public ConnectionConfig.Builder autoReconnectCondition(Predicate<RetryMetadata> predicate)
-
autoReplay
public ConnectionConfig.Builder autoReplay(boolean b)
-
sslConfig
public ConnectionConfig.Builder sslConfig(SslConfig config)
-
useStartTLS
public ConnectionConfig.Builder useStartTLS(boolean b)
-
connectionInitializers
public ConnectionConfig.Builder connectionInitializers(ConnectionInitializer... initializers)
-
connectionStrategy
public ConnectionConfig.Builder connectionStrategy(ConnectionStrategy strategy)
-
connectionValidator
public ConnectionConfig.Builder connectionValidator(ConnectionValidator validator)
-
transportOption
public ConnectionConfig.Builder transportOption(String id, Object value)
-
build
public ConnectionConfig build()
-
-