Interface Serdes<T>

    • Method Detail

      • configure

        default void configure​(Conf configuration)
        Configure this Serdes.
        Specified by:
        configure in interface Configurable
        Parameters:
        configuration - the Conf instance used to configure this instance.
      • contentType

        String contentType()
        Get the content-type attached to this Serdes.
        Returns:
        a string representing the content-type.
      • serialize

        byte[] serialize​(T object)
                  throws SerializationException
        Serialize a data object into a byte array.
        Parameters:
        object - the data object to convert; may be null.
        Returns:
        the serialized data byte array; may be null
        Throws:
        SerializationException
      • deserialize

        T deserialize​(byte[] data)
               throws SerializationException
        Deserialize data from a byte array into a value or object.
        Parameters:
        data - the data byte array to deserialize; may be null.
        Returns:
        the deserialized typed data; may be null
        Throws:
        SerializationException