io.atleon.schemaregistry.confluent.AvroRegistryKafkaDeserializer Maven / Gradle / Ivy
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);
}
}