Record Class UserFunctionStartInfo
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.plugin.UserFunctionStartInfo
- Record Components:
id- operation IDname- human-readable operation name (may be null)type- operation type (STEP, CONTEXT, etc.)subType- operation sub-type (Map, Parallel, WaitForCondition, etc.) — may be nullparentId- parent operation ID (null for root-level operations)startTimestamp- when the user function startedisReplayingChildren- true if child operations within this context are being replayed from checkpointsattempt- 1-based attempt number for steps/waitForCondition, null for context operations
@Deprecated
public record UserFunctionStartInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, boolean isReplayingChildren, Integer attempt)
extends Record
Deprecated.
This is a preview API that is experimental and may be changed or removed in future releases.
Information provided when a user function starts executing.
This fires for both step attempts and child context functions, on the same thread as the user code. For steps,
attempt is non-null (1-based). For context operations, attempt is null.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattempt()Deprecated.Returns the value of theattemptrecord component.final booleanDeprecated.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated.Returns a hash code value for this object.id()Deprecated.Returns the value of theidrecord component.booleanDeprecated.Returns the value of theisReplayingChildrenrecord component.name()Deprecated.Returns the value of thenamerecord component.parentId()Deprecated.Returns the value of theparentIdrecord component.Deprecated.Returns the value of thestartTimestamprecord component.subType()Deprecated.Returns the value of thesubTyperecord component.final StringtoString()Deprecated.Returns a string representation of this record class.type()Deprecated.Returns the value of thetyperecord component.
-
Constructor Details
-
UserFunctionStartInfo
public UserFunctionStartInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, boolean isReplayingChildren, Integer attempt) Deprecated.Creates an instance of aUserFunctionStartInforecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentsubType- the value for thesubTyperecord componentparentId- the value for theparentIdrecord componentstartTimestamp- the value for thestartTimestamprecord componentisReplayingChildren- the value for theisReplayingChildrenrecord componentattempt- the value for theattemptrecord component
-
-
Method Details
-
toString
Deprecated.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()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.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 '=='. -
id
Deprecated.Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Deprecated.Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Deprecated.Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
subType
Deprecated.Returns the value of thesubTyperecord component.- Returns:
- the value of the
subTyperecord component
-
parentId
Deprecated.Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-
startTimestamp
Deprecated.Returns the value of thestartTimestamprecord component.- Returns:
- the value of the
startTimestamprecord component
-
isReplayingChildren
public boolean isReplayingChildren()Deprecated.Returns the value of theisReplayingChildrenrecord component.- Returns:
- the value of the
isReplayingChildrenrecord component
-
attempt
Deprecated.Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-