-
public interface StreamEventSerialization<T extends Object>Interface for serializing and deserializing product event objects.
All operations return a Result so callers can safely propagate failures (e.g. malformed input, I/O errors, schema mismatches) without throwing.
-
-
Method Summary
-
-
Method Detail
-
serialize
abstract Result<String> serialize(T data)
Encodes a product event into a String suitable for transport or storage.
- Parameters:
data- The event to serialize.
-
deserialize
abstract Result<T> deserialize(String raw)
Decodes a product event from a String representation.
- Parameters:
raw- The string to deserialize.
-
-
-
-