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 Details

    • RetryConfig

      public RetryConfig(Integer maxAttempts, Long initialDelay, Long maxDelay, Double backoffMultiplier, List<String> retryOn)
      Creates an instance of a RetryConfig record class.
      Parameters:
      maxAttempts - the value for the maxAttempts record component
      initialDelay - the value for the initialDelay record component
      maxDelay - the value for the maxDelay record component
      backoffMultiplier - the value for the backoffMultiplier record component
      retryOn - the value for the retryOn record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • maxAttempts

      public Integer maxAttempts()
      Returns the value of the maxAttempts record component.
      Returns:
      the value of the maxAttempts record component
    • initialDelay

      public Long initialDelay()
      Returns the value of the initialDelay record component.
      Returns:
      the value of the initialDelay record component
    • maxDelay

      public Long maxDelay()
      Returns the value of the maxDelay record component.
      Returns:
      the value of the maxDelay record component
    • backoffMultiplier

      public Double backoffMultiplier()
      Returns the value of the backoffMultiplier record component.
      Returns:
      the value of the backoffMultiplier record component
    • retryOn

      public List<String> retryOn()
      Returns the value of the retryOn record component.
      Returns:
      the value of the retryOn record component