Class SerdePipeline
java.lang.Object
dev.restate.serde.SerdePipeline
Combines a
SerdeFactory and a PayloadCodec: resolves the Serde from the
TypeTag, then serializes and encodes, or decodes and deserializes, the values.-
Constructor Summary
ConstructorsConstructorDescriptionSerdePipeline(SerdeFactory serdeFactory, @Nullable PayloadCodec payloadCodec) -
Method Summary
Modifier and TypeMethodDescription<T> CompletableFuture<T> Decode the value, then resolve the serde and deserialize it.<T> CompletableFuture<Slice> Resolve the serde, serialize the value, then encode it.
-
Constructor Details
-
SerdePipeline
- Parameters:
payloadCodec- the codec to use, ornullto usePayloadCodec.NOOP.
-
-
Method Details
-
encode
Resolve the serde, serialize the value, then encode it. -
decode
Decode the value, then resolve the serde and deserialize it. -
serdeFactory
-
payloadCodec
-