Class FailedDeserializationInfo
- java.lang.Object
-
- org.springframework.kafka.support.serializer.FailedDeserializationInfo
-
public class FailedDeserializationInfo extends java.lang.ObjectClass containing all the contextual information around a deserialization error.- Since:
- 2.2.8
- Author:
- Victor Perez Rey, Artem Bilan
-
-
Constructor Summary
Constructors Constructor Description FailedDeserializationInfo(java.lang.String topic, org.apache.kafka.common.header.Headers headers, byte[] data, boolean isForKey, java.lang.Exception exception)Construct an instance with the contextual information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()java.lang.ExceptiongetException()org.apache.kafka.common.header.HeadersgetHeaders()java.lang.StringgetTopic()booleanisForKey()java.lang.StringtoString()
-
-
-
Constructor Detail
-
FailedDeserializationInfo
public FailedDeserializationInfo(java.lang.String topic, org.apache.kafka.common.header.Headers headers, byte[] data, boolean isForKey, java.lang.Exception exception)Construct an instance with the contextual information.- Parameters:
topic- topic associated with the data.headers- headers associated with the record; may be empty.data- serialized bytes; may be null.isForKey- true for a key deserializer, false otherwise.exception- exception causing the deserialization error.
-
-
Method Detail
-
getTopic
public java.lang.String getTopic()
-
getHeaders
public org.apache.kafka.common.header.Headers getHeaders()
-
getData
public byte[] getData()
-
isForKey
public boolean isForKey()
-
getException
public java.lang.Exception getException()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-