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

io.apicurio.registry.utils.export.ExportContext Maven / Gradle / Ivy

There is a newer version: 3.0.4
Show newest version
package io.apicurio.registry.utils.export;

import io.apicurio.registry.utils.impexp.EntityWriter;
import io.confluent.kafka.schemaregistry.client.SchemaRegistryClient;
import io.confluent.kafka.schemaregistry.client.rest.RestService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ExportContext {
    private final EntityWriter writer;
    private final RestService restService;
    private final SchemaRegistryClient schemaRegistryClient;
    private final List exportedSubjectVersions = new ArrayList<>();
    private final Map contentIndex = new HashMap<>();

    public ExportContext(EntityWriter writer, RestService restService, SchemaRegistryClient schemaRegistryClient) {
        this.writer = writer;
        this.restService = restService;
        this.schemaRegistryClient = schemaRegistryClient;
    }

    public EntityWriter getWriter() {
        return writer;
    }

    public SchemaRegistryClient getSchemaRegistryClient() {
        return schemaRegistryClient;
    }

    public List getExportedSubjectVersions() {
        return exportedSubjectVersions;
    }

    public RestService getRestService() {
        return restService;
    }

    public Map getContentIndex() {
        return contentIndex;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy