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

io.atleon.schemaregistry.confluent.AvroRegistryKafkaDeserializer Maven / Gradle / Ivy

There is a newer version: 0.28.3
Show newest version
package io.atleon.schemaregistry.confluent;

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

import java.util.Map;

/**
 * A Kafka {@link Deserializer} that delegates to {@link AvroRegistryDeserializer}
 *
 * @param  The type of data deserialized by this deserializer
 */
public final class AvroRegistryKafkaDeserializer implements Deserializer {

    private final AvroRegistryDeserializer delegate = new AvroRegistryDeserializer<>();

    @Override
    public void configure(Map configs, boolean isKey) {
        delegate.configure(configs);
    }

    @Override
    public T deserialize(String topic, byte[] data) {
        return delegate.deserialize(data);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy