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 record
Settings which control the behavior of http retries -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpFileSystemProviderSettings.RetrySettings
The default retry settings, these are a good basis for retry handlingstatic final HttpFileSystemProviderSettings
default settings which will be used unless they are resetprivate final HttpClient.Redirect
The field for theredirect
record component.private final HttpFileSystemProviderSettings.RetrySettings
The field for theretrySettings
record component.private final Duration
The field for thetimeout
record component. -
Constructor Summary
ConstructorsConstructorDescriptionHttpFileSystemProviderSettings
(Duration timeout, HttpClient.Redirect redirect, HttpFileSystemProviderSettings.RetrySettings retrySettings) Creates an instance of aHttpFileSystemProviderSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.redirect()
Returns the value of theredirect
record component.Returns the value of theretrySettings
record component.timeout()
Returns the value of thetimeout
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
timeout
The field for thetimeout
record component. -
redirect
The field for theredirect
record component. -
retrySettings
The field for theretrySettings
record 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 aHttpFileSystemProviderSettings
record class.- Parameters:
timeout
- the value for thetimeout
record componentredirect
- the value for theredirect
record componentretrySettings
- the value for theretrySettings
record 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 thetimeout
record component.- Returns:
- the value of the
timeout
record component
-
redirect
Returns the value of theredirect
record component.- Returns:
- the value of the
redirect
record component
-
retrySettings
Returns the value of theretrySettings
record component.- Returns:
- the value of the
retrySettings
record component
-