Record Class InvocationEndInfo
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.plugin.InvocationEndInfo
- Record Components:
requestId- the Lambda request ID for this invocationdurableExecutionArn- the durable execution ARNisFirstInvocation- true if this is the first invocation of the executionexecutionStartTime- the stable start timestamp of the durable executionoperations- a snapshot of operations known when the invocation ended, keyed by operation IDinvocationStatus- the invocation outcomeexecutionError- non-null if the execution failed; this component is experimentalexecutionInput- the deserialized execution input; this component is experimentalexecutionResult- 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 Summary
ConstructorsConstructorDescriptionInvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, Map<String, OperationChangeItemInfo> operations, InvocationStatus invocationStatus, Throwable executionError, Object executionInput, Object executionResult) Creates an instance of aInvocationEndInforecord class.InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, InvocationStatus invocationStatus, Throwable executionError) Creates invocation-end information without execution payloads or operation state.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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedurableExecutionArnrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionErrorrecord component.Returns the value of theexecutionInputrecord component.Returns the value of theexecutionResultrecord component.Returns the value of theexecutionStartTimerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationStatusrecord component.booleanReturns the value of theisFirstInvocationrecord component.Returns the value of theoperationsrecord component.Returns the value of therequestIdrecord component.toString()Returns a representation that omits execution payloads and operation snapshots.
-
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, @Experimental Throwable executionError, @Experimental Object executionInput, @Experimental Object executionResult) Creates an instance of aInvocationEndInforecord class.- Parameters:
requestId- the value for therequestIdrecord componentdurableExecutionArn- the value for thedurableExecutionArnrecord componentisFirstInvocation- the value for theisFirstInvocationrecord componentexecutionStartTime- the value for theexecutionStartTimerecord componentoperations- the value for theoperationsrecord componentinvocationStatus- the value for theinvocationStatusrecord componentexecutionError- the value for theexecutionErrorrecord componentexecutionInput- the value for theexecutionInputrecord componentexecutionResult- the value for theexecutionResultrecord component
-
-
Method Details
-
toString
Returns a representation that omits execution payloads and operation snapshots. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
durableExecutionArn
Returns the value of thedurableExecutionArnrecord component.- Returns:
- the value of the
durableExecutionArnrecord component
-
isFirstInvocation
public boolean isFirstInvocation()Returns the value of theisFirstInvocationrecord component.- Returns:
- the value of the
isFirstInvocationrecord component
-
executionStartTime
Returns the value of theexecutionStartTimerecord component.- Returns:
- the value of the
executionStartTimerecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
invocationStatus
Returns the value of theinvocationStatusrecord component.- Returns:
- the value of the
invocationStatusrecord component
-
executionError
Returns the value of theexecutionErrorrecord component.- Returns:
- the value of the
executionErrorrecord component
-
executionInput
Returns the value of theexecutionInputrecord component.- Returns:
- the value of the
executionInputrecord component
-
executionResult
Returns the value of theexecutionResultrecord component.- Returns:
- the value of the
executionResultrecord component
-