Class DurableInputOutputSerDes

java.lang.Object
software.amazon.lambda.durable.serde.DurableInputOutputSerDes
All Implemented Interfaces:
SerDes

public class DurableInputOutputSerDes extends Object implements SerDes
Serializer/Deserializer for Durable Execution Input and Output objects. This is for INTERNAL use only - handles Lambda Durable Functions backend protocol.

Customer-facing serialization uses SerDes from DurableConfig.

  • Constructor Details

    • DurableInputOutputSerDes

      public DurableInputOutputSerDes()
  • Method Details

    • serialize

      public String serialize(Object value)
      Serializes an object to a JSON string.
      Specified by:
      serialize in interface SerDes
      Parameters:
      value - the object to serialize
      Returns:
      the JSON string representation, or null if value is null
    • deserialize

      public <T> T deserialize(String data, TypeToken<T> typeToken)
      Deserializes a JSON string to DurableExecutionInput object
      Specified by:
      deserialize in interface SerDes
      Type Parameters:
      T - the target type
      Parameters:
      data - the JSON string to deserialize
      typeToken - the type token of DurableExecutionInput
      Returns:
      the deserialized object, or null if data is null