Package dev.restate.serde
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
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SerdeFactoryNoop factory, that will throwUnsupportedOperationExceptionwhen called. -
Method Summary
-
Field Details
-
NOOP
Noop factory, that will throwUnsupportedOperationExceptionwhen called.
-
-
Method Details
-
create
-
create
-
create
-