Class JsonArraySerializer
- java.lang.Object
-
- io.vertx.kafka.client.serialization.JsonArraySerializer
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.kafka.common.serialization.Serializer<JsonArray>
public class JsonArraySerializer extends Object implements org.apache.kafka.common.serialization.Serializer<JsonArray>
Kafka serializer for raw bytes in a buffer
-
-
Constructor Summary
Constructors Constructor Description JsonArraySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
configure(Map<String,?> configs, boolean isKey)
byte[]
serialize(String topic, JsonArray data)
-
-
-
Method Detail
-
configure
public void configure(Map<String,?> configs, boolean isKey)
- Specified by:
configure
in interfaceorg.apache.kafka.common.serialization.Serializer<JsonArray>
-
serialize
public byte[] serialize(String topic, JsonArray data)
- Specified by:
serialize
in interfaceorg.apache.kafka.common.serialization.Serializer<JsonArray>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.kafka.common.serialization.Serializer<JsonArray>
-
-