Interface KafkaEventReader
-
- All Known Implementing Classes:
RawJsonEventReader
public interface KafkaEventReaderImplements the logic to convert the byte[] contained in the value of a Kafka Record to a java object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TreadEvent(byte[] value, Class<T> valueClazz)Converts a byte[] to an object
-
-
-
Method Detail
-
readEvent
<T> T readEvent(byte[] value, Class<T> valueClazz) throws IOException, ClassNotFoundExceptionConverts a byte[] to an object- Type Parameters:
T- object type- Parameters:
value- byte[] to be converted to objectvalueClazz- the class of the result object- Returns:
- object of specified type
- Throws:
IOException- if any input output exception classClassNotFoundException- if any class contained in the object being built cannot be found
-
-