Package akka.javasdk.ledger
Record Class ActivityRecord.Event.DelegationStarted
- Record Components:
workerComponentIds- the component ids of the workersdelegationCount- the number of delegations that startedsubtaskIds- the ids of the subtasks, empty for a delegation to a request-based agentworkerInstanceIds- the instance ids of the workers, an empty string for a request-based agent
- All Implemented Interfaces:
ActivityRecord.Event
- Enclosing interface:
ActivityRecord.Event
public static record ActivityRecord.Event.DelegationStarted(List<String> workerComponentIds, int delegationCount, List<String> subtaskIds, List<String> workerInstanceIds)
extends Record
implements ActivityRecord.Event
The agent started delegations to workers. The two worker lists have one entry for each
delegation, in the same order. A delegation to an autonomous agent is a subtask, and
subtaskIds() has its id at the same index. The runtime records each delegation to a
request-based agent in an event of its own, with one worker that has an empty instance id and
no subtask id.-
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 TypeMethodDescriptionintReturns the value of thedelegationCountrecord component.final 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.Returns the value of thesubtaskIdsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkerComponentIdsrecord component.Returns the value of theworkerInstanceIdsrecord component.
-
Constructor Details
-
DelegationStarted
public DelegationStarted(List<String> workerComponentIds, int delegationCount, List<String> subtaskIds, List<String> workerInstanceIds) Creates an instance of aDelegationStartedrecord class.- Parameters:
workerComponentIds- the value for theworkerComponentIdsrecord componentdelegationCount- the value for thedelegationCountrecord componentsubtaskIds- the value for thesubtaskIdsrecord componentworkerInstanceIds- the value for theworkerInstanceIdsrecord 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 '=='. -
workerComponentIds
Returns the value of theworkerComponentIdsrecord component.- Returns:
- the value of the
workerComponentIdsrecord component
-
delegationCount
public int delegationCount()Returns the value of thedelegationCountrecord component.- Returns:
- the value of the
delegationCountrecord component
-
subtaskIds
Returns the value of thesubtaskIdsrecord component.- Returns:
- the value of the
subtaskIdsrecord component
-
workerInstanceIds
Returns the value of theworkerInstanceIdsrecord component.- Returns:
- the value of the
workerInstanceIdsrecord component
-