public interface SchemaRegistry extends SchemaVersionFetcher
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_TENANT |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SchemaRegistryConfig |
config() |
void |
deleteSchemaVersion(String subject,
Schema schema,
boolean permanentDelete) |
List<Integer> |
deleteSubject(String subject,
boolean permanentDelete) |
SchemaString |
get(int id,
String subject) |
Schema |
get(String subject,
int version,
boolean returnDeletedSchema) |
Iterator<SchemaKey> |
getAllVersions(String subject,
LookupFilter filter) |
default Schema |
getByVersion(String subject,
int version,
boolean returnDeletedSchema) |
Schema |
getLatestVersion(String subject) |
Schema |
getLatestWithMetadata(String subject,
Map<String,String> metadata,
boolean lookupDeletedSchema) |
Iterator<ExtendedSchema> |
getVersionsWithSubjectPrefix(String prefix,
boolean includeAliases,
LookupFilter filter,
boolean latestOnly,
Predicate<Schema> postFilter) |
void |
init() |
List<String> |
isCompatible(String subject,
Schema newSchema,
List<SchemaKey> previousSchemas,
boolean normalize) |
default Set<String> |
listSubjects() |
Set<String> |
listSubjects(LookupFilter filter) |
Set<String> |
listSubjectsForId(int id,
String subject,
boolean returnDeleted) |
default Schema |
lookUpSchemaUnderSubject(String subject,
Schema schema,
boolean lookupDeletedSchema) |
Schema |
lookUpSchemaUnderSubject(String subject,
Schema schema,
boolean normalize,
boolean lookupDeletedSchema) |
Map<String,Object> |
properties() |
default Schema |
register(String subject,
Schema schema) |
default Schema |
register(String subject,
Schema schema,
boolean normalize) |
Schema |
register(String subject,
Schema schema,
boolean normalize,
boolean propagateSchemaTags) |
Set<String> |
schemaTypes() |
default void |
setTenant(String tenant)
Can be used by subclasses to implement multi-tenancy
|
default String |
tenant() |
static final String DEFAULT_TENANT
void init() throws SchemaRegistryException
SchemaRegistryExceptiondefault Schema register(String subject, Schema schema) throws SchemaRegistryException
SchemaRegistryExceptiondefault Schema register(String subject, Schema schema, boolean normalize) throws SchemaRegistryException
SchemaRegistryExceptionSchema register(String subject, Schema schema, boolean normalize, boolean propagateSchemaTags) throws SchemaRegistryException
SchemaRegistryExceptiondefault Schema getByVersion(String subject, int version, boolean returnDeletedSchema)
getByVersion in interface SchemaVersionFetcherSchema get(String subject, int version, boolean returnDeletedSchema) throws SchemaRegistryException
SchemaRegistryExceptionSchemaString get(int id, String subject) throws SchemaRegistryException
SchemaRegistryExceptiondefault Set<String> listSubjects() throws SchemaRegistryException
SchemaRegistryExceptionSet<String> listSubjects(LookupFilter filter) throws SchemaRegistryException
SchemaRegistryExceptionSet<String> listSubjectsForId(int id, String subject, boolean returnDeleted) throws SchemaRegistryException
SchemaRegistryExceptionIterator<SchemaKey> getAllVersions(String subject, LookupFilter filter) throws SchemaRegistryException
SchemaRegistryExceptionIterator<ExtendedSchema> getVersionsWithSubjectPrefix(String prefix, boolean includeAliases, LookupFilter filter, boolean latestOnly, Predicate<Schema> postFilter) throws SchemaRegistryException
SchemaRegistryExceptionSchema getLatestVersion(String subject) throws SchemaRegistryException
SchemaRegistryExceptionList<Integer> deleteSubject(String subject, boolean permanentDelete) throws SchemaRegistryException
SchemaRegistryExceptiondefault Schema lookUpSchemaUnderSubject(String subject, Schema schema, boolean lookupDeletedSchema) throws SchemaRegistryException
SchemaRegistryExceptionSchema lookUpSchemaUnderSubject(String subject, Schema schema, boolean normalize, boolean lookupDeletedSchema) throws SchemaRegistryException
SchemaRegistryExceptionSchema getLatestWithMetadata(String subject, Map<String,String> metadata, boolean lookupDeletedSchema) throws SchemaRegistryException
SchemaRegistryExceptionList<String> isCompatible(String subject, Schema newSchema, List<SchemaKey> previousSchemas, boolean normalize) throws SchemaRegistryException
SchemaRegistryExceptionvoid close()
throws IOException
IOExceptionvoid deleteSchemaVersion(String subject, Schema schema, boolean permanentDelete) throws SchemaRegistryException
SchemaRegistryExceptiondefault String tenant()
tenant in interface SchemaVersionFetcherdefault void setTenant(String tenant)
tenant - the tenantSchemaRegistryConfig config()
Copyright © 2026 Confluent, Inc.. All rights reserved.