Class PluginInfoConverter

java.lang.Object
software.amazon.lambda.durable.plugin.PluginInfoConverter

@Deprecated public final class PluginInfoConverter extends Object
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 Details

    • toOperationInfo

      public static OperationInfo toOperationInfo(software.amazon.awssdk.services.lambda.model.Operation operation, OperationIdentifier identifier, String parentId)
      Deprecated.
      Converts an SDK Operation to an OperationInfo using an OperationIdentifier.
      Parameters:
      operation - the SDK operation (may be null for first-start scenarios)
      identifier - the operation identifier containing id, name, type, and subType
      parentId - 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.
      Creates an OperationEndInfo from an SDK Operation, an OperationIdentifier, and an optional error.
      Parameters:
      operation - the completed SDK operation
      identifier - the operation identifier containing id, name, type, and subType
      parentId - 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 a UserFunctionStartInfo for when a user function starts executing.
      Parameters:
      identifier - the operation identifier containing id, name, type, and subType
      parentId - 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 a UserFunctionEndInfo from a start info and outcome.
      Parameters:
      startInfo - the start info from when the function began
      succeeded - true if the function completed without error
      error - the error if the function failed (may be null)
      Returns:
      a UserFunctionEndInfo record