Record Class OperationInfo

java.lang.Object
java.lang.Record
software.amazon.lambda.durable.plugin.OperationInfo
Record Components:
id - operation ID (unique within the execution)
name - human-readable operation name (may be null)
type - operation type (STEP, WAIT, CONTEXT, CHAINED_INVOKE, CALLBACK)
subType - operation sub-type (Map, Parallel, RunInChildContext, WaitForCondition, etc.) — may be null
parentId - parent operation ID (null for root-level operations)
startTimestamp - when the operation started — on first execution this is a local Instant.now() which may slightly differ from the timestamp recorded by the backend; on replay it comes from the backend checkpoint
endTimestamp - when the operation ended (null if still running)

@Deprecated public record OperationInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, Instant endTimestamp) extends Record
Deprecated.
This is a preview API that is experimental and may be changed or removed in future releases.
Operation-level information available to plugin hooks.

Field names mirror the Operation type from the AWS SDK for consistency.

  • Constructor Details

    • OperationInfo

      public OperationInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, Instant endTimestamp)
      Deprecated.
      Creates an instance of a OperationInfo record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      type - the value for the type record component
      subType - the value for the subType record component
      parentId - the value for the parentId record component
      startTimestamp - the value for the startTimestamp record component
      endTimestamp - the value for the endTimestamp record component
  • Method Details

    • toString

      public final String toString()
      Deprecated.
      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()
      Deprecated.
      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)
      Deprecated.
      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.
    • id

      public String id()
      Deprecated.
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Deprecated.
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • type

      public String type()
      Deprecated.
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • subType

      public String subType()
      Deprecated.
      Returns the value of the subType record component.
      Returns:
      the value of the subType record component
    • parentId

      public String parentId()
      Deprecated.
      Returns the value of the parentId record component.
      Returns:
      the value of the parentId record component
    • startTimestamp

      public Instant startTimestamp()
      Deprecated.
      Returns the value of the startTimestamp record component.
      Returns:
      the value of the startTimestamp record component
    • endTimestamp

      public Instant endTimestamp()
      Deprecated.
      Returns the value of the endTimestamp record component.
      Returns:
      the value of the endTimestamp record component