Record Class UserFunctionEndInfo
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.plugin.UserFunctionEndInfo
- 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 startedendTimestamp- when the user function endedisReplayingChildren- true if child operations within this context are being replayed from checkpointsattempt- 1-based attempt number for steps/waitForCondition, null for context operationssucceeded- true if the user function completed without errorerror- non-null if the user function failed
@Deprecated
public record UserFunctionEndInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, Instant endTimestamp, boolean isReplayingChildren, Integer attempt, boolean succeeded, Throwable error)
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 finishes executing.
This fires for both step attempts and child context functions, on the same thread as the user code.
-
Constructor Summary
ConstructorsConstructorDescriptionUserFunctionEndInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, Instant endTimestamp, boolean isReplayingChildren, Integer attempt, boolean succeeded, Throwable error) Deprecated.Creates an instance of aUserFunctionEndInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionattempt()Deprecated.Returns the value of theattemptrecord component.Deprecated.Returns the value of theendTimestamprecord component.final booleanDeprecated.Indicates whether some other object is "equal to" this one.error()Deprecated.Returns the value of theerrorrecord component.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.booleanDeprecated.Returns the value of thesucceededrecord component.final StringtoString()Deprecated.Returns a string representation of this record class.type()Deprecated.Returns the value of thetyperecord component.
-
Constructor Details
-
UserFunctionEndInfo
public UserFunctionEndInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, Instant endTimestamp, boolean isReplayingChildren, Integer attempt, boolean succeeded, Throwable error) Deprecated.Creates an instance of aUserFunctionEndInforecord 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 componentendTimestamp- the value for theendTimestamprecord componentisReplayingChildren- the value for theisReplayingChildrenrecord componentattempt- the value for theattemptrecord componentsucceeded- the value for thesucceededrecord componenterror- the value for theerrorrecord 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
-
endTimestamp
Deprecated.Returns the value of theendTimestamprecord component.- Returns:
- the value of the
endTimestamprecord 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
-
succeeded
public boolean succeeded()Deprecated.Returns the value of thesucceededrecord component.- Returns:
- the value of the
succeededrecord component
-
error
Deprecated.Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-