Interface SerdeFactory

All Known Implementing Classes:
JacksonSerdeFactory

public interface SerdeFactory
This factory creates Serde that are used in various places of the SDK, notably:
  • To deserialize handler's input and deserialize the output
  • To serialize and deserialize state, awakeables, promises and so on
When using the Java APIs, a Jackson based implementation is used by default, see JacksonSerdeFactory in sdk-serde-jackson module.

When using the Kotlin APIs, a Kotlin Serialization implementation is used by default, see KotlinSerializationSerdeFactory in sdk-api-kotlin module.

You can override the default factory used for a given service by adding the annotation CustomSerdeFactory on the interface/class annotated with Service/VirtualObject/Workflow

Implementations MUST be thread safe.