Package 

Interface StreamEventSerialization


  • 
    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

      Modifier and Type Method Description
      abstract Result<String> serialize(T data) Encodes a product event into a String suitable for transport or storage.
      abstract Result<T> deserialize(String raw) Decodes a product event from a String representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.