Package app.ductape.sdk.database.types
Record Class TriggerTypes.TriggerRetry
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.TriggerTypes.TriggerRetry
- Enclosing class:
- TriggerTypes
-
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.intReturns 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
-
TriggerRetry
public TriggerRetry(int maxAttempts, Long initialDelay, Long maxDelay, Double backoffMultiplier, List<String> retryOn) Creates an instance of aTriggerRetryrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
maxAttempts
public int 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
-