java.lang.Object
com.pervasive.datarush.net.NetworkConfiguration
Specifies the network configuration to use.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic NetworkConfigurationA direct connection with default settings -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of connection to use in order to connectintReturns the maximum number of retries to use when connecting.Returns the proxy host to use when connecting.intReturns the proxy port to use when connecting.static NetworkConfigurationsocksProxy(String proxyHost, int proxyPort) Returns a socks proxy configurationwithMaxConnectRetries(int maxConnectRetries) Specifies the maximum number of retries to use when connecting.
-
Field Details
-
DIRECT
A direct connection with default settings
-
-
Method Details
-
socksProxy
Returns a socks proxy configuration- Parameters:
proxyHost- the proxy hostproxyPort- the proxy port- Returns:
- the network configuration configured for socks proxy
-
connectionType
Returns the type of connection to use in order to connect- Returns:
- the type of connection
-
proxyHost
Returns the proxy host to use when connecting. This setting is ignored unless type isNetworkConfiguration.ConnectType.SOCKS_PROXY.- Returns:
- the proxy host
-
proxyPort
public int proxyPort()Returns the proxy port to use when connecting. This setting is ignored unless type isNetworkConfiguration.ConnectType.SOCKS_PROXY.- Returns:
- the proxy port
-
maxConnectRetries
public int maxConnectRetries()Returns the maximum number of retries to use when connecting. The default is 10.- Returns:
- the maximum number of retries
-
withMaxConnectRetries
Specifies the maximum number of retries to use when connecting. The default is 10- Parameters:
maxConnectRetries- the maximum number of retries- Returns:
- a new network configuration with the specified number of max retries
-