Record Class SerDesContext
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.serde.SerDesContext
- Record Components:
durableExecutionArn- the durable execution ARN, stable across Lambda invocationsentityId- the payload identity, unique within the durable execution
Stable identity supplied to operation serializers on initial execution and replay.
Entity IDs include the operation ID and payload role (result, exception, or
invoke-payload). Polling state uses the result identity. Multiple values can be serialized for the same
identity during retries or polling, so storage implementations must preserve previously returned references.
-
Constructor Summary
ConstructorsConstructorDescriptionSerDesContext(String durableExecutionArn, String entityId) Creates an instance of aSerDesContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedurableExecutionArnrecord component.entityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SerDesContext
Creates an instance of aSerDesContextrecord class.- Parameters:
durableExecutionArn- the value for thedurableExecutionArnrecord componententityId- the value for theentityIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
durableExecutionArn
Returns the value of thedurableExecutionArnrecord component.- Returns:
- the value of the
durableExecutionArnrecord component
-
entityId
Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-