Package com.google.cloud.hadoop.util
Class RetryHttpInitializerOptions
java.lang.Object
com.google.cloud.hadoop.util.RetryHttpInitializerOptions
Options for the
RetryHttpInitializer class.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()abstract DurationA connection timeout - maximum time to wait until connection will be established.abstract StringA String to set as the user-agent when initializing an HTTP request if it doesn't already have a "User-Agent" header.An additional HTTP headers to set in an HTTP request.abstract intA max number of retries for an HTTP request.abstract DurationA read timeout from an established connection - maximum time to wait for a read form an established connection to finish.abstract RetryHttpInitializerOptions.Builder
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
RetryHttpInitializerOptions
public RetryHttpInitializerOptions()
-
-
Method Details
-
builder
-
toBuilder
-
getDefaultUserAgent
A String to set as the user-agent when initializing an HTTP request if it doesn't already have a "User-Agent" header. -
getHttpHeaders
An additional HTTP headers to set in an HTTP request. -
getConnectTimeout
A connection timeout - maximum time to wait until connection will be established. -
getReadTimeout
A read timeout from an established connection - maximum time to wait for a read form an established connection to finish. -
getMaxRequestRetries
public abstract int getMaxRequestRetries()A max number of retries for an HTTP request.
-