Package akka.javasdk.agent.autonomous
Record Class Notification.DelegationResolved
- All Implemented Interfaces:
Notification,Notification.DelegationNotification
- Enclosing interface:
Notification
public static record Notification.DelegationResolved(int succeeded, int failed, List<String> succeededSubtaskIds, List<String> failedSubtaskIds)
extends Record
implements Notification.DelegationNotification
Orchestrator side: aggregate resolution of a delegation batch.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.agent.autonomous.Notification
Notification.Activated, Notification.BacklogAccessGranted, Notification.BacklogAssigned, Notification.BacklogClosed, Notification.BacklogNotification, Notification.BacklogTaskClaimed, Notification.ContactAdded, Notification.ConversationCreated, Notification.ConversationEnded, Notification.ConversationJoined, Notification.ConversationNotification, Notification.ConversationParticipantReady, Notification.ConversationParticipantSetupFailed, Notification.ConversationTurnReceived, Notification.Deactivated, Notification.DelegationNotification, Notification.DelegationResolved, Notification.DelegationStarted, Notification.DependencyResolved, Notification.HandoffNotification, Notification.HandoffReceived, Notification.HandoffStarted, Notification.IterationCompleted, Notification.IterationFailed, Notification.IterationStarted, Notification.LifecycleNotification, Notification.MessageReceived, Notification.MessagingNotification, Notification.ParticipantTurnSubmitted, Notification.RepeatedIterationFailure, Notification.Resumed, Notification.Stopped, Notification.StruggleNotification, Notification.Suspended, Notification.TaskApproachingMaxIterations, Notification.TaskAssigned, Notification.TaskCancelled, Notification.TaskCompleted, Notification.TaskDependencyStuck, Notification.TaskDependencyWait, Notification.TaskFailed, Notification.TaskNotification, Notification.TaskResultRejected, Notification.TaskStarted, Notification.TaskStruggleDetected, Notification.TeamCreated, Notification.TeamDisbanded, Notification.TeamJoined, Notification.TeamMemberReady, Notification.TeamMemberSetupFailed, Notification.TeamMemberStopped, Notification.TeamNotification, Notification.WorkerTaskCompleted, Notification.WorkerTaskReceived -
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.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
-
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
-