Record Class OperationInfo
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.plugin.OperationInfo
- Record Components:
id- operation ID (unique within the execution)name- human-readable operation name (may be null)type- operation type (STEP, WAIT, CONTEXT, CHAINED_INVOKE, CALLBACK)subType- operation sub-type (Map, Parallel, RunInChildContext, WaitForCondition, etc.) — may be nullparentId- parent operation ID (null for root-level operations)startTimestamp- when the operation started — on first execution this is a localInstant.now()which may slightly differ from the timestamp recorded by the backend; on replay it comes from the backend checkpointendTimestamp- when the operation ended (null if still running)
@Deprecated
public record OperationInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, Instant endTimestamp)
extends Record
Deprecated.
This is a preview API that is experimental and may be changed or removed in future releases.
Operation-level information available to plugin hooks.
Field names mirror the Operation type from the AWS SDK for consistency.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the value of theendTimestamprecord 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.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
-
OperationInfo
public OperationInfo(String id, String name, String type, String subType, String parentId, Instant startTimestamp, Instant endTimestamp) Deprecated.Creates an instance of aOperationInforecord 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 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-