io.apicurio.registry.serde.data.SerdeMetadata Maven / Gradle / Ivy
The newest version!
package io.apicurio.registry.serde.data;
import io.apicurio.registry.resolver.data.Metadata;
import io.apicurio.registry.resolver.strategy.ArtifactReference;
/**
* Kafka specific implementation for the Record Metadata abstraction used by the SchemaResolver
*/
public class SerdeMetadata implements Metadata {
private final String topic;
private final boolean isKey;
public SerdeMetadata(String topic, boolean isKey) {
this.topic = topic;
this.isKey = isKey;
}
/**
* @see io.apicurio.registry.resolver.data.Metadata#artifactReference()
*/
@Override
public ArtifactReference artifactReference() {
return null;
}
/**
* @return the topic
*/
public String getTopic() {
return topic;
}
/**
* @return the isKey
*/
public boolean isKey() {
return isKey;
}
}