Package com.networknt.kafka.common
Class LightSchemaRegistryClient
- java.lang.Object
-
- io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient
-
- com.networknt.kafka.common.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.CachedSchemaRegistryClientThis 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
-
-
Constructor Summary
Constructors Constructor Description LightSchemaRegistryClient()
-
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
-
-