Package akka.javasdk.ledger
Record Class ActivityRecord.Event.TaskStarted
- Record Components:
taskId- the id of the tasktaskDescription- the description of the taskmaxIterations- the maximum number of iterations for the task
- All Implemented Interfaces:
ActivityRecord.Event
- Enclosing interface:
ActivityRecord.Event
public static record ActivityRecord.Event.TaskStarted(String taskId, String taskDescription, int maxIterations)
extends Record
implements ActivityRecord.Event
The agent started to work on a task.
-
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
ConstructorsConstructorDescriptionTaskStarted(String taskId, String taskDescription, int maxIterations) Creates an instance of aTaskStartedrecord class. -
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.kind()The name of the event in the stored record, such astask_completed.intReturns the value of themaxIterationsrecord component.Returns the value of thetaskDescriptionrecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskStarted
Creates an instance of aTaskStartedrecord class.- Parameters:
taskId- the value for thetaskIdrecord componenttaskDescription- the value for thetaskDescriptionrecord componentmaxIterations- the value for themaxIterationsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
taskDescription
Returns the value of thetaskDescriptionrecord component.- Returns:
- the value of the
taskDescriptionrecord component
-
maxIterations
public int maxIterations()Returns the value of themaxIterationsrecord component.- Returns:
- the value of the
maxIterationsrecord component
-