public final class NetworkConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NetworkConfiguration.ConnectType |
Modifier and Type | Field and Description |
---|---|
static NetworkConfiguration |
DIRECT
A direct connection with default settings
|
Modifier and Type | Method and Description |
---|---|
NetworkConfiguration.ConnectType |
connectionType()
Returns the type of connection to use in order to connect
|
int |
maxConnectRetries()
Returns the maximum number of retries to use when connecting.
|
String |
proxyHost()
Returns the proxy host to use when connecting.
|
int |
proxyPort()
Returns the proxy port to use when connecting.
|
static NetworkConfiguration |
socksProxy(String proxyHost,
int proxyPort)
Returns a socks proxy configuration
|
NetworkConfiguration |
withMaxConnectRetries(int maxConnectRetries)
Specifies the maximum number of retries to use when connecting.
|
public static NetworkConfiguration DIRECT
public static NetworkConfiguration socksProxy(String proxyHost, int proxyPort)
proxyHost
- the proxy hostproxyPort
- the proxy portpublic NetworkConfiguration.ConnectType connectionType()
public String proxyHost()
NetworkConfiguration.ConnectType.SOCKS_PROXY
.public int proxyPort()
NetworkConfiguration.ConnectType.SOCKS_PROXY
.public int maxConnectRetries()
public NetworkConfiguration withMaxConnectRetries(int maxConnectRetries)
maxConnectRetries
- the maximum number of retriesCopyright © 2020 Actian Corporation. All rights reserved.