Package net.devslash
Class ConfigBuilder
-
- All Implemented Interfaces:
public final class ConfigBuilder
Timeouts. Use
0
to specify infinite. Negative value mean to use the system's default value.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
followRedirects
private Integer
socketTimeout
private Integer
connectTimeout
private Integer
connectionRequestTimeout
-
Constructor Summary
Constructors Constructor Description ConfigBuilder()
-
Method Summary
Modifier and Type Method Description final Boolean
getFollowRedirects()
Max time between TCP packets - default 10 seconds. final Unit
setFollowRedirects(Boolean followRedirects)
Max time between TCP packets - default 10 seconds. final Integer
getSocketTimeout()
Max time to establish an HTTP connection - default 10 seconds. final Unit
setSocketTimeout(Integer socketTimeout)
Max time to establish an HTTP connection - default 10 seconds. final Integer
getConnectTimeout()
Max time to establish an HTTP connection - default 20 seconds. final Unit
setConnectTimeout(Integer connectTimeout)
Max time to establish an HTTP connection - default 20 seconds. final Integer
getConnectionRequestTimeout()
Max time for the connection manager to start a request - 20 seconds. final Unit
setConnectionRequestTimeout(Integer connectionRequestTimeout)
Max time for the connection manager to start a request - 20 seconds. final Config
build()
-
-
Method Detail
-
getFollowRedirects
final Boolean getFollowRedirects()
Max time between TCP packets - default 10 seconds.
-
setFollowRedirects
final Unit setFollowRedirects(Boolean followRedirects)
Max time between TCP packets - default 10 seconds.
-
getSocketTimeout
final Integer getSocketTimeout()
Max time to establish an HTTP connection - default 10 seconds.
-
setSocketTimeout
final Unit setSocketTimeout(Integer socketTimeout)
Max time to establish an HTTP connection - default 10 seconds.
-
getConnectTimeout
final Integer getConnectTimeout()
Max time to establish an HTTP connection - default 20 seconds.
-
setConnectTimeout
final Unit setConnectTimeout(Integer connectTimeout)
Max time to establish an HTTP connection - default 20 seconds.
-
getConnectionRequestTimeout
final Integer getConnectionRequestTimeout()
Max time for the connection manager to start a request - 20 seconds.
-
setConnectionRequestTimeout
final Unit setConnectionRequestTimeout(Integer connectionRequestTimeout)
Max time for the connection manager to start a request - 20 seconds.
-
-
-
-