All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.kafka.client.serialization.BufferSerializer Maven / Gradle / Ivy

There is a newer version: 3.18.0.CR1
Show newest version
package io.quarkus.kafka.client.serialization;

import org.apache.kafka.common.serialization.Serializer;

import io.vertx.core.buffer.Buffer;

/**
 * Kafka serializer for raw bytes in a buffer
 */
public class BufferSerializer implements Serializer {

    @Override
    public byte[] serialize(String topic, Buffer data) {
        if (data == null)
            return null;

        return data.getBytes();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy