Class DeserializationErrorHandlingJsonSerde<T>
java.lang.Object
io.confluent.security.store.kafka.clients.JsonSerde<T>
io.confluent.security.store.kafka.clients.DeserializationErrorHandlingJsonSerde<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.common.Configurable,org.apache.kafka.common.serialization.Deserializer<T>,org.apache.kafka.common.serialization.Serde<T>,org.apache.kafka.common.serialization.Serializer<T>
ErrorHandlingJsonSerde that catches exceptions while deserializing key/value of the
records and returns the value as per the user provided handleDeserializationExceptionFunction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(String topic, byte[] data) deserialize(String topic, org.apache.kafka.common.header.Headers headers, byte[] data) static <T> DeserializationErrorHandlingJsonSerde<T> serde(Class<T> clazz, boolean isKey, Function<DeserializationErrorHandlingJsonSerde.DeserializationError, T> handleDeserializationExceptionFunction) Methods inherited from class io.confluent.security.store.kafka.clients.JsonSerde
close, configure, deserializer, serde, serialize, serializerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.common.serialization.Deserializer
deserializeMethods inherited from interface org.apache.kafka.common.serialization.Serializer
serialize
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.serialization.Deserializer<T>- Specified by:
configurein interfaceorg.apache.kafka.common.serialization.Serde<T>- Specified by:
configurein interfaceorg.apache.kafka.common.serialization.Serializer<T>- Overrides:
configurein classJsonSerde<T>
-
deserialize
-
deserialize
-
serde
public static <T> DeserializationErrorHandlingJsonSerde<T> serde(Class<T> clazz, boolean isKey, Function<DeserializationErrorHandlingJsonSerde.DeserializationError, T> handleDeserializationExceptionFunction)
-