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
executionInput - the deserialized execution input
executionResult - the value returned by a successful handler

public record InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, Map<String,OperationChangeItemInfo> operations, InvocationStatus invocationStatus, Throwable executionError, Object executionInput, 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

    • InvocationEndInfo

      public InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, InvocationStatus invocationStatus, Throwable executionError)
      Creates invocation-end information without execution payloads or operation state.
    • InvocationEndInfo

      public InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, InvocationStatus invocationStatus, Throwable executionError, Object executionInput, Object executionResult)
      Creates invocation-end information without execution start time or operation state.
    • InvocationEndInfo

      public InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, Map<String,OperationChangeItemInfo> operations, InvocationStatus invocationStatus, Throwable executionError, Object executionInput, Object executionResult)
      Creates an instance of a InvocationEndInfo record class.
      Parameters:
      requestId - the value for the requestId record component
      durableExecutionArn - the value for the durableExecutionArn record component
      isFirstInvocation - the value for the isFirstInvocation record component
      executionStartTime - the value for the executionStartTime record component
      operations - the value for the operations record component
      invocationStatus - the value for the invocationStatus record component
      executionError - the value for the executionError record component
      executionInput - the value for the executionInput record component
      executionResult - the value for the executionResult record component
  • 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

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

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

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