Package akka.javasdk.ledger
Record Class ActivityRecord.Event.DelegationResolved
- Record Components:
succeeded- the number of delegations that succeededfailed- the number of delegations that failedsucceededSubtaskIds- the ids of the subtasks that succeededfailedSubtaskIds- the ids of the subtasks that failed
- All Implemented Interfaces:
ActivityRecord.Event
- Enclosing interface:
ActivityRecord.Event
public static record ActivityRecord.Event.DelegationResolved(int succeeded, int failed, List<String> succeededSubtaskIds, List<String> failedSubtaskIds)
extends Record
implements ActivityRecord.Event
The delegations of the agent resolved. The counts include a delegation to a request-based
agent, and the subtask id lists leave it out.
-
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
ConstructorsConstructorDescriptionDelegationResolved(int succeeded, int failed, List<String> succeededSubtaskIds, List<String> failedSubtaskIds) Creates an instance of aDelegationResolvedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.Returns the value of thefailedSubtaskIdsrecord component.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 thesucceededrecord component.Returns the value of thesucceededSubtaskIdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DelegationResolved
public DelegationResolved(int succeeded, int failed, List<String> succeededSubtaskIds, List<String> failedSubtaskIds) Creates an instance of aDelegationResolvedrecord class.- Parameters:
succeeded- the value for thesucceededrecord componentfailed- the value for thefailedrecord componentsucceededSubtaskIds- the value for thesucceededSubtaskIdsrecord componentfailedSubtaskIds- the value for thefailedSubtaskIdsrecord 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 '=='. -
succeeded
public int succeeded()Returns the value of thesucceededrecord component.- Returns:
- the value of the
succeededrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
succeededSubtaskIds
Returns the value of thesucceededSubtaskIdsrecord component.- Returns:
- the value of the
succeededSubtaskIdsrecord component
-
failedSubtaskIds
Returns the value of thefailedSubtaskIdsrecord component.- Returns:
- the value of the
failedSubtaskIdsrecord component
-