public class CachedSchemaRegistryClient extends Object implements SchemaRegistryClient
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
DEFAULT_REQUEST_PROPERTIES |
| Constructor and Description |
|---|
CachedSchemaRegistryClient(List<String> baseUrls,
int cacheCapacity) |
CachedSchemaRegistryClient(List<String> baseUrls,
int cacheCapacity,
List<SchemaProvider> providers,
Map<String,?> originals) |
CachedSchemaRegistryClient(List<String> baseUrls,
int cacheCapacity,
List<SchemaProvider> providers,
Map<String,?> originals,
Map<String,String> httpHeaders) |
CachedSchemaRegistryClient(List<String> baseUrls,
int cacheCapacity,
Map<String,?> originals) |
CachedSchemaRegistryClient(List<String> baseUrls,
int cacheCapacity,
Map<String,?> originals,
Map<String,String> httpHeaders) |
CachedSchemaRegistryClient(RestService restService,
int cacheCapacity) |
CachedSchemaRegistryClient(RestService restService,
int cacheCapacity,
List<SchemaProvider> providers,
Map<String,?> configs,
Map<String,String> httpHeaders) |
CachedSchemaRegistryClient(RestService restService,
int cacheCapacity,
List<SchemaProvider> providers,
Map<String,?> configs,
Map<String,String> httpHeaders,
com.google.common.base.Ticker ticker) |
CachedSchemaRegistryClient(RestService restService,
int cacheCapacity,
Map<String,?> configs) |
CachedSchemaRegistryClient(RestService restService,
int cacheCapacity,
Map<String,?> originals,
Map<String,String> httpHeaders) |
CachedSchemaRegistryClient(String baseUrl,
int cacheCapacity) |
CachedSchemaRegistryClient(String baseUrls,
int identityMapCapacity,
List<SchemaProvider> providers,
Map<String,?> originals) |
CachedSchemaRegistryClient(String baseUrls,
int cacheCapacity,
List<SchemaProvider> providers,
Map<String,?> originals,
Map<String,String> httpHeaders) |
CachedSchemaRegistryClient(String baseUrl,
int cacheCapacity,
Map<String,?> originals) |
CachedSchemaRegistryClient(String baseUrl,
int cacheCapacity,
Map<String,?> originals,
Map<String,String> httpHeaders) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteCompatibility, deleteSchemaVersion, deleteSchemaVersion, deleteSubject, deleteSubject, getById, getByID, getBySubjectAndId, getBySubjectAndID, getCompatibility, getId, getVersion, parseSchema, register, register, registerWithResponse, tenant, testCompatibility, updateCompatibilitypublic CachedSchemaRegistryClient(String baseUrl, int cacheCapacity)
public CachedSchemaRegistryClient(List<String> baseUrls, int cacheCapacity)
public CachedSchemaRegistryClient(RestService restService, int cacheCapacity)
public CachedSchemaRegistryClient(String baseUrl, int cacheCapacity, Map<String,?> originals)
public CachedSchemaRegistryClient(List<String> baseUrls, int cacheCapacity, Map<String,?> originals)
public CachedSchemaRegistryClient(List<String> baseUrls, int cacheCapacity, List<SchemaProvider> providers, Map<String,?> originals)
public CachedSchemaRegistryClient(String baseUrls, int identityMapCapacity, List<SchemaProvider> providers, Map<String,?> originals)
public CachedSchemaRegistryClient(RestService restService, int cacheCapacity, Map<String,?> configs)
public CachedSchemaRegistryClient(String baseUrl, int cacheCapacity, Map<String,?> originals, Map<String,String> httpHeaders)
public CachedSchemaRegistryClient(List<String> baseUrls, int cacheCapacity, Map<String,?> originals, Map<String,String> httpHeaders)
public CachedSchemaRegistryClient(List<String> baseUrls, int cacheCapacity, List<SchemaProvider> providers, Map<String,?> originals, Map<String,String> httpHeaders)
public CachedSchemaRegistryClient(String baseUrls, int cacheCapacity, List<SchemaProvider> providers, Map<String,?> originals, Map<String,String> httpHeaders)
public CachedSchemaRegistryClient(RestService restService, int cacheCapacity, Map<String,?> originals, Map<String,String> httpHeaders)
public CachedSchemaRegistryClient(RestService restService, int cacheCapacity, List<SchemaProvider> providers, Map<String,?> configs, Map<String,String> httpHeaders)
public CachedSchemaRegistryClient(RestService restService, int cacheCapacity, List<SchemaProvider> providers, Map<String,?> configs, Map<String,String> httpHeaders, com.google.common.base.Ticker ticker)
public com.google.common.base.Ticker ticker()
ticker in interface SchemaRegistryClientpublic Optional<ParsedSchema> parseSchema(String schemaType, String schemaString, List<SchemaReference> references)
parseSchema in interface SchemaRegistryClientpublic Optional<ParsedSchema> parseSchema(Schema schema)
parseSchema in interface SchemaRegistryClientpublic Map<String,SchemaProvider> getSchemaProviders()
protected ParsedSchema getSchemaByIdFromRegistry(int id, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic int register(String subject, ParsedSchema schema) throws IOException, RestClientException
register in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic int register(String subject, ParsedSchema schema, boolean normalize) throws IOException, RestClientException
register in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic int register(String subject, ParsedSchema schema, int version, int id) throws IOException, RestClientException
register in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic RegisterSchemaResponse registerWithResponse(String subject, ParsedSchema schema, boolean normalize, boolean propagateSchemaTags) throws IOException, RestClientException
registerWithResponse in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic ParsedSchema getSchemaById(int id) throws IOException, RestClientException
getSchemaById in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic ParsedSchema getSchemaBySubjectAndId(String subject, int id) throws IOException, RestClientException
getSchemaBySubjectAndId in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic List<ParsedSchema> getSchemas(String subjectPrefix, boolean lookupDeletedSchema, boolean latestOnly) throws IOException, RestClientException
getSchemas in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Collection<String> getAllSubjectsById(int id) throws IOException, RestClientException
getAllSubjectsById in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Collection<SubjectVersion> getAllVersionsById(int id) throws IOException, RestClientException
getAllVersionsById in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Schema getByVersion(String subject, int version, boolean lookupDeletedSchema)
getByVersion in interface SchemaRegistryClientgetByVersion in interface SchemaVersionFetcherpublic SchemaMetadata getSchemaMetadata(String subject, int version) throws IOException, RestClientException
getSchemaMetadata in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic SchemaMetadata getSchemaMetadata(String subject, int version, boolean lookupDeletedSchema) throws IOException, RestClientException
getSchemaMetadata in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic SchemaMetadata getLatestSchemaMetadata(String subject) throws IOException, RestClientException
getLatestSchemaMetadata in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic SchemaMetadata getLatestWithMetadata(String subject, Map<String,String> metadata, boolean lookupDeletedSchema) throws IOException, RestClientException
getLatestWithMetadata in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic int getVersion(String subject, ParsedSchema schema) throws IOException, RestClientException
getVersion in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic int getVersion(String subject, ParsedSchema schema, boolean normalize) throws IOException, RestClientException
getVersion in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic List<Integer> getAllVersions(String subject) throws IOException, RestClientException
getAllVersions in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic List<Integer> getAllVersions(String subject, boolean lookupDeletedSchema) throws IOException, RestClientException
getAllVersions in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic int getId(String subject, ParsedSchema schema) throws IOException, RestClientException
getId in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic int getId(String subject, ParsedSchema schema, boolean normalize) throws IOException, RestClientException
getId in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic List<Integer> deleteSubject(String subject, boolean isPermanent) throws IOException, RestClientException
deleteSubject in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic List<Integer> deleteSubject(Map<String,String> requestProperties, String subject, boolean isPermanent) throws IOException, RestClientException
deleteSubject in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Integer deleteSchemaVersion(String subject, String version, boolean isPermanent) throws IOException, RestClientException
deleteSchemaVersion in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Integer deleteSchemaVersion(Map<String,String> requestProperties, String subject, String version, boolean isPermanent) throws IOException, RestClientException
deleteSchemaVersion in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic boolean testCompatibility(String subject, ParsedSchema schema) throws IOException, RestClientException
testCompatibility in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic List<String> testCompatibilityVerbose(String subject, ParsedSchema schema) throws IOException, RestClientException
testCompatibilityVerbose in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic List<String> testCompatibilityVerbose(String subject, ParsedSchema schema, boolean normalize) throws IOException, RestClientException
testCompatibilityVerbose in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Config updateConfig(String subject, Config config) throws IOException, RestClientException
updateConfig in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Config getConfig(String subject) throws IOException, RestClientException
getConfig in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic void deleteConfig(String subject) throws IOException, RestClientException
deleteConfig in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic String setMode(String mode) throws IOException, RestClientException
setMode in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic String setMode(String mode, String subject) throws IOException, RestClientException
setMode in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic String setMode(String mode, String subject, boolean force) throws IOException, RestClientException
setMode in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic String getMode() throws IOException, RestClientException
getMode in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic String getMode(String subject) throws IOException, RestClientException
getMode in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic void deleteMode(String subject) throws IOException, RestClientException
deleteMode in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Collection<String> getAllContexts() throws IOException, RestClientException
getAllContexts in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Collection<String> getAllSubjects() throws IOException, RestClientException
getAllSubjects in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Collection<String> getAllSubjects(boolean lookupDeletedSubject) throws IOException, RestClientException
getAllSubjects in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic Collection<String> getAllSubjectsByPrefix(String subjectPrefix) throws IOException, RestClientException
getAllSubjectsByPrefix in interface SchemaRegistryClientIOExceptionRestClientExceptionpublic void reset()
reset in interface SchemaRegistryClientpublic void close()
throws IOException
close in interface SchemaRegistryClientclose in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2025 Confluent, Inc.. All rights reserved.