Package org.broadinstitute.http.nio
Record Class HttpFileSystemProviderSettings
java.lang.Object
java.lang.Record
org.broadinstitute.http.nio.HttpFileSystemProviderSettings
public record HttpFileSystemProviderSettings(Duration timeout, HttpClient.Redirect redirect, HttpFileSystemProviderSettings.RetrySettings retrySettings)
extends Record
Settings that control the behavior of newly instantiated Http(s)FileSystems
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSettings which control the behavior of http retries -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpFileSystemProviderSettings.RetrySettingsThe default retry settings, these are a good basis for retry handlingstatic final HttpFileSystemProviderSettingsdefault settings which will be used unless they are resetprivate final HttpClient.RedirectThe field for theredirectrecord component.private final HttpFileSystemProviderSettings.RetrySettingsThe field for theretrySettingsrecord component.private final DurationThe field for thetimeoutrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionHttpFileSystemProviderSettings(Duration timeout, HttpClient.Redirect redirect, HttpFileSystemProviderSettings.RetrySettings retrySettings) Creates an instance of aHttpFileSystemProviderSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.redirect()Returns the value of theredirectrecord component.Returns the value of theretrySettingsrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
timeout
The field for thetimeoutrecord component. -
redirect
The field for theredirectrecord component. -
retrySettings
The field for theretrySettingsrecord component. -
DEFAULT_RETRY_SETTINGS
The default retry settings, these are a good basis for retry handling -
DEFAULT_SETTINGS
default settings which will be used unless they are reset
-
-
Constructor Details
-
HttpFileSystemProviderSettings
public HttpFileSystemProviderSettings(Duration timeout, HttpClient.Redirect redirect, HttpFileSystemProviderSettings.RetrySettings retrySettings) Creates an instance of aHttpFileSystemProviderSettingsrecord class.- Parameters:
timeout- the value for thetimeoutrecord componentredirect- the value for theredirectrecord componentretrySettings- the value for theretrySettingsrecord component
-
-
Method Details
-
toString
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()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
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). -
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
redirect
Returns the value of theredirectrecord component.- Returns:
- the value of the
redirectrecord component
-
retrySettings
Returns the value of theretrySettingsrecord component.- Returns:
- the value of the
retrySettingsrecord component
-