Package net.devslash
Class ConfigBuilder
-
- All Implemented Interfaces:
public final class ConfigBuilderTimeouts. Use
0to specify infinite. Negative value mean to use the system's default value.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanfollowRedirectsprivate IntegersocketTimeoutprivate IntegerconnectTimeoutprivate IntegerconnectionRequestTimeout
-
Constructor Summary
Constructors Constructor Description ConfigBuilder()
-
Method Summary
Modifier and Type Method Description final BooleangetFollowRedirects()Max time between TCP packets - default 10 seconds. final UnitsetFollowRedirects(Boolean followRedirects)Max time between TCP packets - default 10 seconds. final IntegergetSocketTimeout()Max time to establish an HTTP connection - default 10 seconds. final UnitsetSocketTimeout(Integer socketTimeout)Max time to establish an HTTP connection - default 10 seconds. final IntegergetConnectTimeout()Max time to establish an HTTP connection - default 20 seconds. final UnitsetConnectTimeout(Integer connectTimeout)Max time to establish an HTTP connection - default 20 seconds. final IntegergetConnectionRequestTimeout()Max time for the connection manager to start a request - 20 seconds. final UnitsetConnectionRequestTimeout(Integer connectionRequestTimeout)Max time for the connection manager to start a request - 20 seconds. final Configbuild()-
-
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.
-
-
-
-