Package com.google.cloud.http
Class HttpTransportOptions
java.lang.Object
com.google.cloud.http.HttpTransportOptions
- All Implemented Interfaces:
TransportOptions,Serializable
Class representing service options for those services that use HTTP as the transport layer.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forHttpTransportOptions.static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the timeout in milliseconds to establish a connection. 0 is an infinite timeout, a negative number is the default value (20000).com.google.api.client.http.HttpRequestInitializergetHttpRequestInitializer(ServiceOptions<?, ?> serviceOptions) Returns a request initializer responsible for initializing requests according to service options.com.google.auth.http.HttpTransportFactoryReturns the HTTP transport factory.intReturns the timeout in milliseconds to read from an established connection. 0 is an infinite timeout, a negative number is the default value (20000).inthashCode()static HttpTransportOptions.Builder
-
Constructor Details
-
HttpTransportOptions
-
-
Method Details
-
getHttpTransportFactory
public com.google.auth.http.HttpTransportFactory getHttpTransportFactory()Returns the HTTP transport factory. -
getHttpRequestInitializer
public com.google.api.client.http.HttpRequestInitializer getHttpRequestInitializer(ServiceOptions<?, ?> serviceOptions) Returns a request initializer responsible for initializing requests according to service options. -
getConnectTimeout
public int getConnectTimeout()Returns the timeout in milliseconds to establish a connection. 0 is an infinite timeout, a negative number is the default value (20000). -
getReadTimeout
public int getReadTimeout()Returns the timeout in milliseconds to read from an established connection. 0 is an infinite timeout, a negative number is the default value (20000). -
toBuilder
-
hashCode
public int hashCode() -
equals
-
newBuilder
-