Record Class ClientHttpRequestFactorySettings
java.lang.Object
java.lang.Record
org.springframework.boot.web.client.ClientHttpRequestFactorySettings
- Record Components:
connectTimeout
- the connect timeoutreadTimeout
- the read timeoutsslBundle
- the SSL bundle providing SSL configuration
@Deprecated(since="3.4.0",
forRemoval=true)
public record ClientHttpRequestFactorySettings(Duration connectTimeout, Duration readTimeout, SslBundle sslBundle)
extends Record
Deprecated, for removal: This API element is subject to removal in a future version.
Settings that can be applied when creating a
ClientHttpRequestFactory
.- Since:
- 3.0.0
- Author:
- Andy Wilkinson, Phillip Webb, Scott Frederick
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ClientHttpRequestFactorySettings
Deprecated, for removal: This API element is subject to removal in a future version.Use defaults for theClientHttpRequestFactory
which can differ depending on the implementation. -
Constructor Summary
ConstructorDescriptionClientHttpRequestFactorySettings
(Duration connectTimeout, Duration readTimeout, SslBundle sslBundle) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aClientHttpRequestFactorySettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Returns the value of theconnectTimeout
record component.final boolean
Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one.final int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object.Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thereadTimeout
record component.Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thesslBundle
record component.final String
toString()
Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class.withConnectTimeout
(Duration connectTimeout) Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactorySettings
instance with an updated connect timeout setting.withReadTimeout
(Duration readTimeout) Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactorySettings
instance with an updated read timeout setting.withSslBundle
(SslBundle sslBundle) Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactorySettings
instance with an updated SSL bundle setting.
-
Field Details
-
DEFAULTS
Deprecated, for removal: This API element is subject to removal in a future version.Use defaults for theClientHttpRequestFactory
which can differ depending on the implementation.
-
-
Constructor Details
-
ClientHttpRequestFactorySettings
public ClientHttpRequestFactorySettings(Duration connectTimeout, Duration readTimeout, SslBundle sslBundle) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aClientHttpRequestFactorySettings
record class.- Parameters:
connectTimeout
- the value for theconnectTimeout
record componentreadTimeout
- the value for thereadTimeout
record componentsslBundle
- the value for thesslBundle
record component
-
-
Method Details
-
withConnectTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactorySettings
instance with an updated connect timeout setting.- Parameters:
connectTimeout
- the new connect timeout setting- Returns:
- a new
ClientHttpRequestFactorySettings
instance
-
withReadTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactorySettings
instance with an updated read timeout setting.- Parameters:
readTimeout
- the new read timeout setting- Returns:
- a new
ClientHttpRequestFactorySettings
instance
-
withSslBundle
Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactorySettings
instance with an updated SSL bundle setting.- Parameters:
sslBundle
- the new SSL bundle setting- Returns:
- a new
ClientHttpRequestFactorySettings
instance - Since:
- 3.1.0
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
connectTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theconnectTimeout
record component.- Returns:
- the value of the
connectTimeout
record component
-
readTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thereadTimeout
record component.- Returns:
- the value of the
readTimeout
record component
-
sslBundle
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thesslBundle
record component.- Returns:
- the value of the
sslBundle
record component
-
ClientHttpRequestFactorySettings