Record Class TriggerTypes.TriggerRetry

java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.TriggerTypes.TriggerRetry
Enclosing class:
TriggerTypes

public static record TriggerTypes.TriggerRetry(int maxAttempts, Long initialDelay, Long maxDelay, Double backoffMultiplier, List<String> retryOn) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    TriggerRetry(int maxAttempts, Long initialDelay, Long maxDelay, Double backoffMultiplier, List<String> retryOn)
    Creates an instance of a TriggerRetry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the backoffMultiplier record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the initialDelay record component.
    int
    Returns the value of the maxAttempts record component.
    Returns the value of the maxDelay record component.
    Returns the value of the retryOn record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TriggerRetry

      public TriggerRetry(int maxAttempts, Long initialDelay, Long maxDelay, Double backoffMultiplier, List<String> retryOn)
      Creates an instance of a TriggerRetry 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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 int 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