Interface StateSerializer<T extends Serializable>
- Type Parameters:
T
- the state type
- All Known Implementing Classes:
DefaultStateSerializer
,JacksonStateSerializer
public interface StateSerializer<T extends Serializable>
Interface for a state serialization of task.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
-
Method Summary
-
Method Details
-
serialize
byte[] serialize(@NonNull TaskId<T> id, @NonNull T obj) throws StateSerializer.SerializationFailedException -
deserialize
T deserialize(@NonNull TaskId<T> id, @NonNull byte[] bytes) throws StateSerializer.DeSerializationFailedException
-