Record Class InvocationEndInfo

java.lang.Object
java.lang.Record
software.amazon.lambda.durable.plugin.InvocationEndInfo
Record Components:
requestId - the Lambda request ID for this invocation
durableExecutionArn - the durable execution ARN
isFirstInvocation - true if this is the first invocation of the execution
executionStartTime - the stable start timestamp of the durable execution
operations - a snapshot of operations known when the invocation ended, keyed by operation ID
invocationStatus - the invocation outcome
executionError - non-null if the execution failed; this component is experimental
executionInput - the deserialized execution input; this component is experimental
executionResult - the value returned by a successful handler; this component is experimental

public record InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, Map<String,OperationChangeItemInfo> operations, InvocationStatus invocationStatus, @Experimental Throwable executionError, @Experimental Object executionInput, @Experimental Object executionResult) extends Record
Information provided at the end of a Lambda invocation.

Carries the same invocation-identity surface as InvocationInfo so an invocation-end hook does not have to correlate back to the start hook to learn the execution start time or operation state.

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Returns a representation that omits execution payloads and operation snapshots.
      Specified by:
      toString in class Record
    • 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. 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.
    • requestId

      public String requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component
    • durableExecutionArn

      public String durableExecutionArn()
      Returns the value of the durableExecutionArn record component.
      Returns:
      the value of the durableExecutionArn record component
    • isFirstInvocation

      public boolean isFirstInvocation()
      Returns the value of the isFirstInvocation record component.
      Returns:
      the value of the isFirstInvocation record component
    • executionStartTime

      public Instant executionStartTime()
      Returns the value of the executionStartTime record component.
      Returns:
      the value of the executionStartTime record component
    • operations

      public Map<String,OperationChangeItemInfo> operations()
      Returns the value of the operations record component.
      Returns:
      the value of the operations record component
    • invocationStatus

      public InvocationStatus invocationStatus()
      Returns the value of the invocationStatus record component.
      Returns:
      the value of the invocationStatus record component
    • executionError

      @Experimental public Throwable executionError()
      Returns the value of the executionError record component.
      Returns:
      the value of the executionError record component
    • executionInput

      @Experimental public Object executionInput()
      Returns the value of the executionInput record component.
      Returns:
      the value of the executionInput record component
    • executionResult

      @Experimental public Object executionResult()
      Returns the value of the executionResult record component.
      Returns:
      the value of the executionResult record component