T -public interface ExtendedSerializer<T> extends Serializer<T>
Serializer if access to the headers is not required. Once Kafka drops support for Java 7, the serialize() method introduced by this interface will be added to Serializer with a default implementation so that backwards compatibility is maintained. This interface may be deprecated once that happens. A class that implements this interface is expected to have a constructor with no parameters.| Modifier and Type | Interface and Description |
|---|---|
static class |
ExtendedSerializer.Wrapper<T> |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
serialize(java.lang.String topic, org.oracle.okafka.common.header.Headers headers, T data)
Convert
data into a byte array. |
close, configure, serializebyte[] serialize(java.lang.String topic,
org.oracle.okafka.common.header.Headers headers,
T data)
data into a byte array.topic - topic associated with dataheaders - headers associated with the recorddata - typed data