Class SchemaRegistryConfigProvider
java.lang.Object
io.confluent.kafka.schemaregistry.client.config.provider.SchemaRegistryConfigProvider
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.common.config.provider.ConfigProvider,org.apache.kafka.common.Configurable
public class SchemaRegistryConfigProvider
extends Object
implements org.apache.kafka.common.config.provider.ConfigProvider
An implementation of
ConfigProvider that obtains configs from metadata in schema
registry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidorg.apache.kafka.common.config.ConfigDataRetrieves the data from schema registry at the given path.org.apache.kafka.common.config.ConfigDataRetrieves the data with the given keys at the given path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.common.config.provider.ConfigProvider
subscribe, unsubscribe, unsubscribeAll
-
Constructor Details
-
SchemaRegistryConfigProvider
public SchemaRegistryConfigProvider()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
get
Retrieves the data from schema registry at the given path. The path is of the form contexts/{context}/subjects/{subject}/versions/{version} or subjects/{subject}/versions/{version} or subjects/{subject} (same as using a version of -1 or latest).- Specified by:
getin interfaceorg.apache.kafka.common.config.provider.ConfigProvider- Parameters:
path- the path where the data resides- Returns:
- the configuration data
-
get
Retrieves the data with the given keys at the given path. The path is of the form contexts/{context}/subjects/{subject}/versions/{version} or subjects/{subject}/versions/{version} or subjects/{subject} (same as using a version of -1 or latest).- Specified by:
getin interfaceorg.apache.kafka.common.config.provider.ConfigProvider- Parameters:
path- the path where the data resideskeys- the keys whose values will be retrieved- Returns:
- the configuration data
-
getData
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-