Record Class StepRetryInfo
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.dsl.api.StepRetryInfo
- Record Components:
attempt- current retry attempt number (1-based).maxRetries- maximum number of retries configured.error- the error that triggered the retry.
@Internal
public record StepRetryInfo(int attempt, int maxRetries, WorkflowError error)
extends Record
Payload for the RETRYING event. Contains retry state for event sourcing and crash recovery.
- Since:
- 5.4.0
- Author:
- Stefan Dragisic
-
Constructor Summary
ConstructorsConstructorDescriptionStepRetryInfo(int attempt, int maxRetries, WorkflowError error) Creates an instance of aStepRetryInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxRetriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StepRetryInfo
Creates an instance of aStepRetryInforecord class.- Parameters:
attempt- the value for theattemptrecord componentmaxRetries- the value for themaxRetriesrecord componenterror- the value for theerrorrecord 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 '=='. -
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-
maxRetries
public int maxRetries()Returns the value of themaxRetriesrecord component.- Returns:
- the value of the
maxRetriesrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-