public class JsonObjectSerializer extends Object implements org.apache.kafka.common.serialization.Serializer<JsonObject>
Constructor and Description |
---|
JsonObjectSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(Map<String,?> configs,
boolean isKey) |
byte[] |
serialize(String topic,
JsonObject data) |
public void configure(Map<String,?> configs, boolean isKey)
configure
in interface org.apache.kafka.common.serialization.Serializer<JsonObject>
public byte[] serialize(String topic, JsonObject data)
serialize
in interface org.apache.kafka.common.serialization.Serializer<JsonObject>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.kafka.common.serialization.Serializer<JsonObject>
Copyright © 2022 Eclipse. All rights reserved.