Class LightSchemaRegistryClient

  • All Implemented Interfaces:
    io.confluent.kafka.schemaregistry.client.SchemaRegistryClient, io.confluent.kafka.schemaregistry.client.SchemaVersionFetcher

    public class LightSchemaRegistryClient
    extends io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient
    This is a singleton shared SchemaRegistryClient that is shared by consumer, producer and streams. It has a default constructor so that the instance will be created based on the streams, producer and consumer configuration in the sequence. It will be defined in the service.yml file and loaded by the first time it is used. The main goal we want to create this class is to share the same instance between producer, consumer and streams as we don't want to create multiple instances. Also, we want to make sure that the TLS and Auth are handled gracefully in the default constructor.
    Author:
    Steve Hu
    • Field Summary

      • Fields inherited from class io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient

        DEFAULT_REQUEST_PROPERTIES
    • Method Summary

      • Methods inherited from class io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient

        deleteCompatibility, deleteMode, deleteSchemaVersion, deleteSchemaVersion, deleteSubject, deleteSubject, getAllSubjects, getAllSubjects, getAllSubjectsById, getAllSubjectsByPrefix, getAllVersions, getAllVersions, getAllVersionsById, getByVersion, getCompatibility, getId, getId, getLatestSchemaMetadata, getMode, getMode, getSchemaById, getSchemaByIdFromRegistry, getSchemaBySubjectAndId, getSchemaMetadata, getSchemaMetadata, getSchemaProviders, getSchemas, getVersion, getVersion, parseSchema, register, register, register, reset, setMode, setMode, testCompatibility, testCompatibilityVerbose, updateCompatibility
      • Methods inherited from interface io.confluent.kafka.schemaregistry.client.SchemaRegistryClient

        deleteSchemaVersion, deleteSchemaVersion, deleteSubject, deleteSubject, getById, getByID, getBySubjectAndId, getBySubjectAndID, getId, getVersion, register, register, testCompatibility
    • Constructor Detail

      • LightSchemaRegistryClient

        public LightSchemaRegistryClient()