Package akka.javasdk.ledger
Record Class ActivityRecord
- Record Components:
recordId- the globally unique id of the recordagentComponentId- the component id of the autonomous agentagentInstanceId- the id of the autonomous agent instanceflowId- the id of the flowevents- the events of the record, in the order they happenedtimestamp- when the record was recorded
- All Implemented Interfaces:
FlowRecord
public record ActivityRecord(String recordId, String agentComponentId, String agentInstanceId, String flowId, List<ActivityRecord.Event> events, Instant timestamp)
extends Record
implements FlowRecord
The activity events that one autonomous agent instance recorded together on a flow, as
LedgerClient.getFlowRecords(String) returns them.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionActivityRecord(String recordId, String agentComponentId, String agentInstanceId, String flowId, List<ActivityRecord.Event> events, Instant timestamp) Creates an instance of aActivityRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentComponentIdrecord component.Returns the value of theagentInstanceIdrecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.flowId()Returns the value of theflowIdrecord component.final inthashCode()Returns a hash code value for this object.recordId()Returns the value of therecordIdrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActivityRecord
public ActivityRecord(String recordId, String agentComponentId, String agentInstanceId, String flowId, List<ActivityRecord.Event> events, Instant timestamp) Creates an instance of aActivityRecordrecord class.- Parameters:
recordId- the value for therecordIdrecord componentagentComponentId- the value for theagentComponentIdrecord componentagentInstanceId- the value for theagentInstanceIdrecord componentflowId- the value for theflowIdrecord componentevents- the value for theeventsrecord componenttimestamp- the value for thetimestamprecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
recordId
Returns the value of therecordIdrecord component.- Returns:
- the value of the
recordIdrecord component
-
agentComponentId
Returns the value of theagentComponentIdrecord component.- Returns:
- the value of the
agentComponentIdrecord component
-
agentInstanceId
Returns the value of theagentInstanceIdrecord component.- Returns:
- the value of the
agentInstanceIdrecord component
-
flowId
Returns the value of theflowIdrecord component.- Returns:
- the value of the
flowIdrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceFlowRecord- Returns:
- the value of the
timestamprecord component
-