Class JsonObjectSerializer

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.kafka.common.serialization.Serializer<io.vertx.core.json.JsonObject>

    public class JsonObjectSerializer
    extends Object
    implements org.apache.kafka.common.serialization.Serializer<io.vertx.core.json.JsonObject>
    Kafka serializer for raw bytes in a buffer
    • Constructor Detail

      • JsonObjectSerializer

        public JsonObjectSerializer()
    • Method Detail

      • serialize

        public byte[] serialize​(String topic,
                                io.vertx.core.json.JsonObject data)
        Specified by:
        serialize in interface org.apache.kafka.common.serialization.Serializer<io.vertx.core.json.JsonObject>