Record Class InvocationInfo
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.plugin.InvocationInfo
- Record Components:
requestId- the Lambda request ID for this invocationdurableExecutionArn- the durable execution ARNisFirstInvocation- true if this is the first invocation of the execution (not a replay invocation)executionStartTime- the start timestamp of the durable execution, taken from the initial EXECUTION operation in the first event delivered by the backend. Never null and stable across all invocations of the same execution.executionInput- the deserialized execution input passed to the user handler, or null when unavailableoperations- checkpointed operations delivered at invocation start, keyed by operation ID; this component is experimentalupdatedOperations- operations changed externally since the previous invocation, keyed by operation ID; this component is experimental
public record InvocationInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, @Experimental Object executionInput, @Experimental Map<String,OperationChangeItemInfo> operations, @Experimental Map<String,OperationChangeItemInfo> updatedOperations)
extends Record
Invocation-level information available to plugin hooks.
-
Constructor Summary
ConstructorsConstructorDescriptionInvocationInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime) Creates invocation information without payload or operation snapshots.InvocationInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, Object executionInput) Creates invocation information without operation snapshots.InvocationInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, Object executionInput, Map<String, OperationChangeItemInfo> operations, Map<String, OperationChangeItemInfo> updatedOperations) Creates an instance of aInvocationInforecord class.InvocationInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, Map<String, OperationChangeItemInfo> operations, Map<String, OperationChangeItemInfo> updatedOperations) Creates invocation information without an execution input. -
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 theexecutionInputrecord component.Returns the value of theexecutionStartTimerecord component.final inthashCode()Returns a hash code value for this object.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.Returns the value of theupdatedOperationsrecord component.
-
Constructor Details
-
InvocationInfo
public InvocationInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, @Experimental Object executionInput, @Experimental Map<String, OperationChangeItemInfo> operations, @Experimental Map<String, OperationChangeItemInfo> updatedOperations) Creates an instance of aInvocationInforecord class.- Parameters:
requestId- the value for therequestIdrecord componentdurableExecutionArn- the value for thedurableExecutionArnrecord componentisFirstInvocation- the value for theisFirstInvocationrecord componentexecutionStartTime- the value for theexecutionStartTimerecord componentexecutionInput- the value for theexecutionInputrecord componentoperations- the value for theoperationsrecord componentupdatedOperations- the value for theupdatedOperationsrecord component
-
InvocationInfo
public InvocationInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime) Creates invocation information without payload or operation snapshots. -
InvocationInfo
public InvocationInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, Object executionInput) Creates invocation information without operation snapshots. -
InvocationInfo
public InvocationInfo(String requestId, String durableExecutionArn, boolean isFirstInvocation, Instant executionStartTime, Map<String, OperationChangeItemInfo> operations, Map<String, OperationChangeItemInfo> updatedOperations) Creates invocation information without an execution input.
-
-
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
-
executionInput
Returns the value of theexecutionInputrecord component.- Returns:
- the value of the
executionInputrecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
updatedOperations
Returns the value of theupdatedOperationsrecord component.- Returns:
- the value of the
updatedOperationsrecord component
-