Interface SchemaRegistryClient
- All Known Implementing Classes:
CachingRegistryClient,ConfluentSchemaRegistryClient,DefaultSchemaRegistryClient
public interface SchemaRegistryClient
- Author:
- Vinicius Carvalho, Marius Bogoevici
-
Method Summary
Modifier and TypeMethodDescriptionfetch(int id) Retrieves a schema by its identifier.fetch(SchemaReference schemaReference) Retrieves a schema by its reference (subject and version).Registers a schema with the remote repository returning the unique identifier associated with this schema.
-
Method Details
-
register
Registers a schema with the remote repository returning the unique identifier associated with this schema.- Parameters:
subject- the full name of the schemaformat- format of the schemaschema- string representation of the schema- Returns:
- a
SchemaRegistrationResponserepresenting the result of the operation
-
fetch
Retrieves a schema by its reference (subject and version).- Parameters:
schemaReference- aSchemaReferenceused to identify the target schema.- Returns:
- schema
-
fetch
Retrieves a schema by its identifier.- Parameters:
id- the id of the target schema.- Returns:
- schema
-