public interface SchemaRegistryClient extends Closeable, SchemaVersionFetcher
| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
default void |
deleteCompatibility(String subject) |
default void |
deleteConfig(String subject) |
default void |
deleteMode(String subject) |
default Integer |
deleteSchemaVersion(Map<String,String> requestProperties,
String subject,
String version) |
default Integer |
deleteSchemaVersion(Map<String,String> requestProperties,
String subject,
String version,
boolean isPermanent) |
default Integer |
deleteSchemaVersion(String subject,
String version) |
default Integer |
deleteSchemaVersion(String subject,
String version,
boolean isPermanent) |
default List<Integer> |
deleteSubject(Map<String,String> requestProperties,
String subject) |
default List<Integer> |
deleteSubject(Map<String,String> requestProperties,
String subject,
boolean isPermanent) |
default List<Integer> |
deleteSubject(String subject) |
default List<Integer> |
deleteSubject(String subject,
boolean isPermanent) |
default Collection<String> |
getAllContexts() |
Collection<String> |
getAllSubjects() |
default Collection<String> |
getAllSubjects(boolean lookupDeletedSubject) |
Collection<String> |
getAllSubjectsById(int id) |
default Collection<String> |
getAllSubjectsByPrefix(String subjectPrefix) |
List<Integer> |
getAllVersions(String subject) |
default List<Integer> |
getAllVersions(String subject,
boolean lookupDeletedSchema) |
default Collection<SubjectVersion> |
getAllVersionsById(int id) |
default org.apache.avro.Schema |
getById(int id)
Deprecated.
use
getSchemaById(int) instead |
default org.apache.avro.Schema |
getByID(int id)
Deprecated.
use
getSchemaById(int) instead |
default org.apache.avro.Schema |
getBySubjectAndId(String subject,
int id)
Deprecated.
use
getSchemaBySubjectAndId(String, int) instead |
default org.apache.avro.Schema |
getBySubjectAndID(String subject,
int id)
Deprecated.
use
getSchemaBySubjectAndId(String, int) instead |
default Schema |
getByVersion(String subject,
int version,
boolean lookupDeletedSchema) |
default String |
getCompatibility(String subject) |
default Config |
getConfig(String subject) |
int |
getId(String subject,
ParsedSchema schema) |
default int |
getId(String subject,
ParsedSchema schema,
boolean normalize) |
default int |
getId(String subject,
org.apache.avro.Schema schema)
Deprecated.
|
SchemaMetadata |
getLatestSchemaMetadata(String subject) |
default SchemaMetadata |
getLatestWithMetadata(String subject,
Map<String,String> metadata,
boolean lookupDeletedSchema) |
String |
getMode() |
String |
getMode(String subject) |
ParsedSchema |
getSchemaById(int id) |
ParsedSchema |
getSchemaBySubjectAndId(String subject,
int id) |
SchemaMetadata |
getSchemaMetadata(String subject,
int version) |
default SchemaMetadata |
getSchemaMetadata(String subject,
int version,
boolean lookupDeletedSchema) |
default List<ParsedSchema> |
getSchemas(String subjectPrefix,
boolean lookupDeletedSchema,
boolean latestOnly) |
int |
getVersion(String subject,
ParsedSchema schema) |
default int |
getVersion(String subject,
ParsedSchema schema,
boolean normalize) |
default int |
getVersion(String subject,
org.apache.avro.Schema schema)
Deprecated.
|
default Optional<ParsedSchema> |
parseSchema(Schema schema) |
Optional<ParsedSchema> |
parseSchema(String schemaType,
String schemaString,
List<SchemaReference> references) |
default Optional<ParsedSchema> |
parseSchema(String schemaType,
String schemaString,
List<SchemaReference> references,
Metadata metadata,
RuleSet ruleSet) |
int |
register(String subject,
ParsedSchema schema) |
default int |
register(String subject,
ParsedSchema schema,
boolean normalize) |
int |
register(String subject,
ParsedSchema schema,
int version,
int id) |
default int |
register(String subject,
org.apache.avro.Schema schema)
Deprecated.
use
register(String, ParsedSchema) instead;
for example, you can convert a Schema into a ParsedSchema
via new AvroSchema(schema) |
default int |
register(String subject,
org.apache.avro.Schema schema,
int version,
int id)
Deprecated.
use
register(String, ParsedSchema, int, int) instead;
for example, you can convert a Schema into a ParsedSchema
via new AvroSchema(schema) |
default RegisterSchemaResponse |
registerWithResponse(String subject,
ParsedSchema schema,
boolean normalize) |
default RegisterSchemaResponse |
registerWithResponse(String subject,
ParsedSchema schema,
boolean normalize,
boolean propagateSchemaTags) |
void |
reset() |
String |
setMode(String mode) |
String |
setMode(String mode,
String subject) |
default String |
setMode(String mode,
String subject,
boolean force) |
default String |
tenant() |
boolean |
testCompatibility(String subject,
ParsedSchema schema) |
default boolean |
testCompatibility(String subject,
org.apache.avro.Schema schema)
Deprecated.
|
default List<String> |
testCompatibilityVerbose(String subject,
ParsedSchema schema) |
default List<String> |
testCompatibilityVerbose(String subject,
ParsedSchema schema,
boolean normalize) |
default com.google.common.base.Ticker |
ticker() |
default String |
updateCompatibility(String subject,
String compatibility) |
default Config |
updateConfig(String subject,
Config config) |
default String tenant()
tenant in interface SchemaVersionFetcherdefault com.google.common.base.Ticker ticker()
Optional<ParsedSchema> parseSchema(String schemaType, String schemaString, List<SchemaReference> references)
default Optional<ParsedSchema> parseSchema(String schemaType, String schemaString, List<SchemaReference> references, Metadata metadata, RuleSet ruleSet)
default Optional<ParsedSchema> parseSchema(Schema schema)
@Deprecated default int register(String subject, org.apache.avro.Schema schema) throws IOException, RestClientException
register(String, ParsedSchema) instead;
for example, you can convert a Schema into a ParsedSchema
via new AvroSchema(schema)IOExceptionRestClientExceptionint register(String subject, ParsedSchema schema) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault int register(String subject, ParsedSchema schema, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientException@Deprecated default int register(String subject, org.apache.avro.Schema schema, int version, int id) throws IOException, RestClientException
register(String, ParsedSchema, int, int) instead;
for example, you can convert a Schema into a ParsedSchema
via new AvroSchema(schema)IOExceptionRestClientExceptionint register(String subject, ParsedSchema schema, int version, int id) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault RegisterSchemaResponse registerWithResponse(String subject, ParsedSchema schema, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault RegisterSchemaResponse registerWithResponse(String subject, ParsedSchema schema, boolean normalize, boolean propagateSchemaTags) throws IOException, RestClientException
IOExceptionRestClientException@Deprecated default org.apache.avro.Schema getByID(int id) throws IOException, RestClientException
getSchemaById(int) insteadIOExceptionRestClientException@Deprecated default org.apache.avro.Schema getById(int id) throws IOException, RestClientException
getSchemaById(int) insteadIOExceptionRestClientExceptionParsedSchema getSchemaById(int id) throws IOException, RestClientException
IOExceptionRestClientException@Deprecated default org.apache.avro.Schema getBySubjectAndID(String subject, int id) throws IOException, RestClientException
getSchemaBySubjectAndId(String, int) insteadIOExceptionRestClientException@Deprecated default org.apache.avro.Schema getBySubjectAndId(String subject, int id) throws IOException, RestClientException
getSchemaBySubjectAndId(String, int) insteadIOExceptionRestClientExceptionParsedSchema getSchemaBySubjectAndId(String subject, int id) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault List<ParsedSchema> getSchemas(String subjectPrefix, boolean lookupDeletedSchema, boolean latestOnly) throws IOException, RestClientException
IOExceptionRestClientExceptionCollection<String> getAllSubjectsById(int id) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Collection<SubjectVersion> getAllVersionsById(int id) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Schema getByVersion(String subject, int version, boolean lookupDeletedSchema)
getByVersion in interface SchemaVersionFetcherSchemaMetadata getLatestSchemaMetadata(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionSchemaMetadata getSchemaMetadata(String subject, int version) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault SchemaMetadata getSchemaMetadata(String subject, int version, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault SchemaMetadata getLatestWithMetadata(String subject, Map<String,String> metadata, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientException@Deprecated default int getVersion(String subject, org.apache.avro.Schema schema) throws IOException, RestClientException
IOExceptionRestClientExceptionint getVersion(String subject, ParsedSchema schema) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault int getVersion(String subject, ParsedSchema schema, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptionList<Integer> getAllVersions(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault List<Integer> getAllVersions(String subject, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientException@Deprecated default boolean testCompatibility(String subject, org.apache.avro.Schema schema) throws IOException, RestClientException
IOExceptionRestClientExceptionboolean testCompatibility(String subject, ParsedSchema schema) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault List<String> testCompatibilityVerbose(String subject, ParsedSchema schema) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault List<String> testCompatibilityVerbose(String subject, ParsedSchema schema, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault String updateCompatibility(String subject, String compatibility) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault String getCompatibility(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault void deleteCompatibility(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Config updateConfig(String subject, Config config) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Config getConfig(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault void deleteConfig(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionString setMode(String mode) throws IOException, RestClientException
IOExceptionRestClientExceptionString setMode(String mode, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault String setMode(String mode, String subject, boolean force) throws IOException, RestClientException
IOExceptionRestClientExceptionString getMode() throws IOException, RestClientException
IOExceptionRestClientExceptionString getMode(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault void deleteMode(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Collection<String> getAllContexts() throws IOException, RestClientException
IOExceptionRestClientExceptionCollection<String> getAllSubjects() throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Collection<String> getAllSubjects(boolean lookupDeletedSubject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Collection<String> getAllSubjectsByPrefix(String subjectPrefix) throws IOException, RestClientException
IOExceptionRestClientException@Deprecated default int getId(String subject, org.apache.avro.Schema schema) throws IOException, RestClientException
IOExceptionRestClientExceptionint getId(String subject, ParsedSchema schema) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault int getId(String subject, ParsedSchema schema, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault List<Integer> deleteSubject(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault List<Integer> deleteSubject(String subject, boolean isPermanent) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault List<Integer> deleteSubject(Map<String,String> requestProperties, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault List<Integer> deleteSubject(Map<String,String> requestProperties, String subject, boolean isPermanent) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Integer deleteSchemaVersion(String subject, String version) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Integer deleteSchemaVersion(String subject, String version, boolean isPermanent) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Integer deleteSchemaVersion(Map<String,String> requestProperties, String subject, String version) throws IOException, RestClientException
IOExceptionRestClientExceptiondefault Integer deleteSchemaVersion(Map<String,String> requestProperties, String subject, String version, boolean isPermanent) throws IOException, RestClientException
IOExceptionRestClientExceptionvoid reset()
default void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2025 Confluent, Inc.. All rights reserved.