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
-
-
-
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)
-
autoRead
public ConnectionConfig.Builder autoRead(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()
-
-