public static class Connection.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Connection.Builder |
authentication(Authentication authentication) |
Connection.Builder |
authentication(Optional<Authentication> authentication) |
Connection |
build() |
Connection.Builder |
enabled(boolean enabled) |
Connection.Builder |
host(String host) |
Connection.Builder |
id(String id) |
Connection.Builder |
port(int port) |
Connection.Builder |
proxy(Proxy proxy) |
Connection.Builder |
readTimeoutMs(int readTimeoutMs) |
Connection.Builder |
readTimeoutSeconds(double val) |
Connection.Builder |
retryIntervalMs(long retryIntervalMs) |
Connection.Builder |
retryIntervalSeconds(double val) |
Connection.Builder |
ssl(boolean ssl) |
public Connection.Builder id(String id)
public Connection.Builder host(String host)
public Connection.Builder port(int port)
public Connection.Builder ssl(boolean ssl)
public Connection.Builder proxy(Proxy proxy)
public Connection.Builder authentication(Optional<Authentication> authentication)
public Connection.Builder authentication(Authentication authentication)
public Connection.Builder readTimeoutMs(int readTimeoutMs)
public Connection.Builder readTimeoutSeconds(double val)
public Connection.Builder retryIntervalMs(long retryIntervalMs)
public Connection.Builder retryIntervalSeconds(double val)
public Connection.Builder enabled(boolean enabled)
public Connection build()
Copyright © 2020. All rights reserved.