Class PluginInfoConverter
java.lang.Object
software.amazon.lambda.durable.plugin.PluginInfoConverter
Deprecated.
This is a preview API that is experimental and may be changed or removed in future releases.
Utility methods for converting SDK internal types to plugin info records.
-
Method Summary
Modifier and TypeMethodDescriptionstatic OperationEndInfotoOperationEndInfo(software.amazon.awssdk.services.lambda.model.Operation operation, OperationIdentifier identifier, String parentId, Throwable error) Deprecated.static OperationInfotoOperationInfo(software.amazon.awssdk.services.lambda.model.Operation operation, OperationIdentifier identifier, String parentId) Deprecated.static UserFunctionEndInfotoUserFunctionEndInfo(UserFunctionStartInfo startInfo, boolean succeeded, Throwable error) Deprecated.Creates aUserFunctionEndInfofrom a start info and outcome.static UserFunctionStartInfotoUserFunctionStartInfo(OperationIdentifier identifier, String parentId, boolean isReplayingChildren, Integer attempt) Deprecated.Creates aUserFunctionStartInfofor when a user function starts executing.
-
Method Details
-
toOperationInfo
public static OperationInfo toOperationInfo(software.amazon.awssdk.services.lambda.model.Operation operation, OperationIdentifier identifier, String parentId) Deprecated.- Parameters:
operation- the SDK operation (may be null for first-start scenarios)identifier- the operation identifier containing id, name, type, and subTypeparentId- the parent operation ID (may be null for root operations)- Returns:
- an OperationInfo record
-
toOperationEndInfo
public static OperationEndInfo toOperationEndInfo(software.amazon.awssdk.services.lambda.model.Operation operation, OperationIdentifier identifier, String parentId, Throwable error) Deprecated.- Parameters:
operation- the completed SDK operationidentifier- the operation identifier containing id, name, type, and subTypeparentId- the parent operation ID (may be null)error- the error if the operation failed (may be null)- Returns:
- an OperationEndInfo record
-
toUserFunctionStartInfo
public static UserFunctionStartInfo toUserFunctionStartInfo(OperationIdentifier identifier, String parentId, boolean isReplayingChildren, Integer attempt) Deprecated.Creates aUserFunctionStartInfofor when a user function starts executing.- Parameters:
identifier- the operation identifier containing id, name, type, and subTypeparentId- the parent operation ID (may be null)isReplay- true if the user function is called during replay (context operations)attempt- the 1-based attempt number (null for context operations)- Returns:
- a UserFunctionStartInfo record
-
toUserFunctionEndInfo
public static UserFunctionEndInfo toUserFunctionEndInfo(UserFunctionStartInfo startInfo, boolean succeeded, Throwable error) Deprecated.Creates aUserFunctionEndInfofrom a start info and outcome.- Parameters:
startInfo- the start info from when the function begansucceeded- true if the function completed without errorerror- the error if the function failed (may be null)- Returns:
- a UserFunctionEndInfo record
-