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 executioninvocationStatus- the invocation outcome (SUCCEEDED, FAILED, or PENDING)executionError- non-null if the execution failed; this component is experimentalexecutionInput- the deserialized execution input passed to the user handler, or null when no plugins are registered or the input could not be deserialized; this component is experimentalexecutionResult- the value the user handler returned, or null unless the invocation completed the execution successfully; this component is experimental
public record InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, InvocationStatus invocationStatus, @Experimental Throwable executionError, @Experimental Object executionInput, @Experimental Object executionResult)
extends Record
Information provided at the end of a Lambda invocation.
-
Constructor Summary
ConstructorsConstructorDescriptionInvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, InvocationStatus invocationStatus, Throwable executionError) Creates invocation-end information without the execution input or result.InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, InvocationStatus invocationStatus, Throwable executionError, Object executionInput, Object executionResult) Creates an instance of aInvocationEndInforecord class. -
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.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 therequestIdrecord component.toString()Returns a representation that omitsexecutionInputandexecutionResult.
-
Constructor Details
-
InvocationEndInfo
public InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, InvocationStatus invocationStatus, Throwable executionError) Creates invocation-end information without the execution input or result.Retained so callers written before
executionInputandexecutionResultwere added keep compiling; both resolve to null.- Parameters:
requestId- the Lambda request ID for this invocationdurableExecutionArn- the durable execution ARNisFirstInvocation- true if this is the first invocation of the executioninvocationStatus- the invocation outcomeexecutionError- non-null if the execution failed
-
InvocationEndInfo
public InvocationEndInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, 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 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 omitsexecutionInputandexecutionResult.The generated representation would render both payloads, so plugins that log this object whole would start emitting customer inputs and results, potentially including secrets or personal data. Read the components explicitly to record them.
-
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
-
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
-