Package app.ductape.sdk.warehouse.types
Record Class WarehouseTransactionTypes.RetryConfig
java.lang.Object
java.lang.Record
app.ductape.sdk.warehouse.types.WarehouseTransactionTypes.RetryConfig
- Enclosing class:
- WarehouseTransactionTypes
public static record WarehouseTransactionTypes.RetryConfig(Integer maxAttempts, Long initialDelay, Long maxDelay, Double backoffMultiplier, List<String> retryOn)
extends Record
TS
IRetryConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackoffMultiplierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialDelayrecord component.Returns the value of themaxAttemptsrecord component.maxDelay()Returns the value of themaxDelayrecord component.retryOn()Returns the value of theretryOnrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RetryConfig
public RetryConfig(Integer maxAttempts, Long initialDelay, Long maxDelay, Double backoffMultiplier, List<String> retryOn) Creates an instance of aRetryConfigrecord class.- Parameters:
maxAttempts- the value for themaxAttemptsrecord componentinitialDelay- the value for theinitialDelayrecord componentmaxDelay- the value for themaxDelayrecord componentbackoffMultiplier- the value for thebackoffMultiplierrecord componentretryOn- the value for theretryOnrecord 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). -
maxAttempts
Returns the value of themaxAttemptsrecord component.- Returns:
- the value of the
maxAttemptsrecord component
-
initialDelay
Returns the value of theinitialDelayrecord component.- Returns:
- the value of the
initialDelayrecord component
-
maxDelay
Returns the value of themaxDelayrecord component.- Returns:
- the value of the
maxDelayrecord component
-
backoffMultiplier
Returns the value of thebackoffMultiplierrecord component.- Returns:
- the value of the
backoffMultiplierrecord component
-
retryOn
Returns the value of theretryOnrecord component.- Returns:
- the value of the
retryOnrecord component
-