io.github.productboardlabs.kafka.serializers.SchemaMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-kafka-avro-serializer Show documentation
Show all versions of jackson-kafka-avro-serializer Show documentation
Kafka Avro (de)serializer using Apache Jackson
The newest version!
package io.github.productboardlabs.kafka.serializers;
import org.apache.avro.Schema;
import org.jetbrains.annotations.NotNull;
public class SchemaMetadata {
private final Schema schema;
private final String subject;
public SchemaMetadata(@NotNull Schema schema, @NotNull String subject) {
this.schema = schema;
this.subject = subject;
}
@NotNull
public Schema getSchema() {
return schema;
}
@NotNull
public String getSubject() {
return subject;
}
}