Record Class ActivityRecord

Object
Record
akka.javasdk.ledger.ActivityRecord
Record Components:
recordId - the globally unique id of the record
agentComponentId - the component id of the autonomous agent
agentInstanceId - the id of the autonomous agent instance
flowId - the id of the flow
events - the events of the record, in the order they happened
timestamp - 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.
  • Constructor Details

    • ActivityRecord

      public ActivityRecord(String recordId, String agentComponentId, String agentInstanceId, String flowId, List<ActivityRecord.Event> events, Instant timestamp)
      Creates an instance of a ActivityRecord record class.
      Parameters:
      recordId - the value for the recordId record component
      agentComponentId - the value for the agentComponentId record component
      agentInstanceId - the value for the agentInstanceId record component
      flowId - the value for the flowId record component
      events - the value for the events record component
      timestamp - the value for the timestamp record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • recordId

      public String recordId()
      Returns the value of the recordId record component.
      Returns:
      the value of the recordId record component
    • agentComponentId

      public String agentComponentId()
      Returns the value of the agentComponentId record component.
      Returns:
      the value of the agentComponentId record component
    • agentInstanceId

      public String agentInstanceId()
      Returns the value of the agentInstanceId record component.
      Returns:
      the value of the agentInstanceId record component
    • flowId

      public String flowId()
      Returns the value of the flowId record component.
      Returns:
      the value of the flowId record component
    • events

      public List<ActivityRecord.Event> events()
      Returns the value of the events record component.
      Returns:
      the value of the events record component
    • timestamp

      public Instant timestamp()
      Returns the value of the timestamp record component.
      Specified by:
      timestamp in interface FlowRecord
      Returns:
      the value of the timestamp record component