Package akka.javasdk.ledger
Record Class ActivityRecord.Event.IterationFailed
- Record Components:
reason- why the iteration failedtaskId- the id of the task, or empty for a failure outside a taskiterationNumber- the number of the iteration, or empty for a failure outside a task
- All Implemented Interfaces:
ActivityRecord.Event
- Enclosing interface:
ActivityRecord.Event
public static record ActivityRecord.Event.IterationFailed(String reason, Optional<String> taskId, Optional<Integer> iterationNumber)
extends Record
implements ActivityRecord.Event
An iteration failed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.ledger.ActivityRecord.Event
ActivityRecord.Event.DelegationResolved, ActivityRecord.Event.DelegationStarted, ActivityRecord.Event.HandoffReceived, ActivityRecord.Event.HandoffStarted, ActivityRecord.Event.IterationFailed, ActivityRecord.Event.Other, ActivityRecord.Event.TaskAssigned, ActivityRecord.Event.TaskCancelled, ActivityRecord.Event.TaskCompleted, ActivityRecord.Event.TaskFailed, ActivityRecord.Event.TaskResultRejected, ActivityRecord.Event.TaskStarted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theiterationNumberrecord component.kind()The name of the event in the stored record, such astask_completed.reason()Returns the value of thereasonrecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IterationFailed
Creates an instance of aIterationFailedrecord class.- Parameters:
reason- the value for thereasonrecord componenttaskId- the value for thetaskIdrecord componentiterationNumber- the value for theiterationNumberrecord component
-
-
Method Details
-
kind
Description copied from interface:ActivityRecord.EventThe name of the event in the stored record, such astask_completed.- Specified by:
kindin interfaceActivityRecord.Event
-
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). -
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
iterationNumber
Returns the value of theiterationNumberrecord component.- Returns:
- the value of the
iterationNumberrecord component
-