Record Class UserFunctionEndInfo

java.lang.Object
java.lang.Record
software.amazon.lambda.durable.plugin.UserFunctionEndInfo
Record Components:
id - operation ID
name - human-readable operation name (may be null)
type - operation type (STEP, CONTEXT, etc.)
subType - operation sub-type (Map, Parallel, WaitForCondition, etc.) — may be null
parentId - parent operation ID (null for root-level operations)
startTimestamp - when the user function started
endTimestamp - when the user function ended
isReplayingChildren - true if child operations within this context are being replayed from checkpoints
attempt - 1-based attempt number for steps/waitForCondition, null for context operations
succeeded - true if the user function completed without error
error - non-null if the user function failed

@Deprecated public record UserFunctionEndInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, Instant endTimestamp, boolean isReplayingChildren, Integer attempt, boolean succeeded, Throwable error) extends Record
Deprecated.
This is a preview API that is experimental and may be changed or removed in future releases.
Information provided when a user function finishes executing.

This fires for both step attempts and child context functions, on the same thread as the user code.

  • Constructor Details

    • UserFunctionEndInfo

      public UserFunctionEndInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, Instant endTimestamp, boolean isReplayingChildren, Integer attempt, boolean succeeded, Throwable error)
      Deprecated.
      Creates an instance of a UserFunctionEndInfo 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
      isReplayingChildren - the value for the isReplayingChildren record component
      attempt - the value for the attempt record component
      succeeded - the value for the succeeded record component
      error - the value for the error 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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
    • isReplayingChildren

      public boolean isReplayingChildren()
      Deprecated.
      Returns the value of the isReplayingChildren record component.
      Returns:
      the value of the isReplayingChildren record component
    • attempt

      public Integer attempt()
      Deprecated.
      Returns the value of the attempt record component.
      Returns:
      the value of the attempt record component
    • succeeded

      public boolean succeeded()
      Deprecated.
      Returns the value of the succeeded record component.
      Returns:
      the value of the succeeded record component
    • error

      public Throwable error()
      Deprecated.
      Returns the value of the error record component.
      Returns:
      the value of the error record component