Interface KafkaEventReader

  • All Known Implementing Classes:
    RawJsonEventReader

    public interface KafkaEventReader
    Implements the logic to convert the byte[] contained in the value of a Kafka Record to a java object
    • Method Detail

      • readEvent

        <T> T readEvent​(byte[] value,
                        Class<T> valueClazz)
                 throws IOException,
                        ClassNotFoundException
        Converts a byte[] to an object
        Type Parameters:
        T - object type
        Parameters:
        value - byte[] to be converted to object
        valueClazz - the class of the result object
        Returns:
        object of specified type
        Throws:
        IOException - if any input output exception class
        ClassNotFoundException - if any class contained in the object being built cannot be found