Package io.confluent.dekregistry.client
Class CachedDekRegistryClient
java.lang.Object
io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient
io.confluent.dekregistry.client.CachedDekRegistryClient
- All Implemented Interfaces:
DekRegistryClient,SchemaRegistryClient,SchemaVersionFetcher,Closeable,AutoCloseable
public class CachedDekRegistryClient
extends CachedSchemaRegistryClient
implements DekRegistryClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient
DEFAULT_REQUEST_PROPERTIESFields inherited from interface io.confluent.dekregistry.client.DekRegistryClient
LATEST_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionCachedDekRegistryClient(DekRegistryRestService restService, int cacheCapacity, int cacheExpirySecs, Map<String, ?> configs, List<SchemaProvider> providers, Map<String, String> httpHeaders, com.google.common.base.Ticker ticker) CachedDekRegistryClient(DekRegistryRestService restService, int cacheCapacity, int cacheExpirySecs, Map<String, ?> configs, Map<String, String> httpHeaders) CachedDekRegistryClient(DekRegistryRestService restService, int cacheCapacity, int cacheExpirySecs, Map<String, ?> configs, Map<String, String> httpHeaders, com.google.common.base.Ticker ticker) CachedDekRegistryClient(String baseUrls, int cacheCapacity, int cacheExpirySecs, Map<String, ?> configs, List<SchemaProvider> providers, Map<String, String> httpHeaders) CachedDekRegistryClient(List<String> baseUrls, int cacheCapacity, int cacheExpirySecs, Map<String, ?> configs, List<SchemaProvider> providers, Map<String, String> httpHeaders) CachedDekRegistryClient(List<String> baseUrls, int cacheCapacity, int cacheExpirySecs, Map<String, ?> configs, Map<String, String> httpHeaders) -
Method Summary
Modifier and TypeMethodDescriptioncreateDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial) createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted) createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted, boolean rewrap) createDek(Map<String, String> requestProperties, String kekName, String subject, Integer version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted) createDek(Map<String, String> requestProperties, String kekName, String subject, Integer version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted, boolean rewrap) createKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared) createKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared, boolean deleted) createKek(Map<String, String> requestProperties, String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared, boolean deleted) voidvoiddeleteDek(Map<String, String> requestProperties, String kekName, String subject, DekFormat algorithm, boolean permanentDelete) voiddeleteDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean permanentDelete) voiddeleteDekVersion(Map<String, String> requestProperties, String kekName, String subject, int version, DekFormat algorithm, boolean permanentDelete) voidvoidgetDekLatestVersion(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) getDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean lookupDeleted) listDeksWithPagination(String kekName, boolean lookupDeleted, int offset, int limit) listDekVersions(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) listDekVersionsWithPagination(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted, int offset, int limit) listKeks(boolean lookupDeleted) listKeksWithPagination(List<String> subjectPrefix, boolean lookupDeleted, int offset, int limit) voidreset()voidcom.google.common.base.Tickerticker()voidundeleteDek(String kekName, String subject, DekFormat algorithm) voidundeleteDek(Map<String, String> requestProperties, String kekName, String subject, DekFormat algorithm) voidundeleteDekVersion(String kekName, String subject, int version, DekFormat algorithm) voidundeleteDekVersion(Map<String, String> requestProperties, String kekName, String subject, int version, DekFormat algorithm) voidundeleteKek(String kekName) voidundeleteKek(Map<String, String> requestProperties, String kekName) updateKek(Map<String, String> requestProperties, String name, Map<String, String> kmsProps, String doc, Boolean shared) Methods inherited from class io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient
batchGetAssociations, close, createAssociation, createOrUpdateAssociation, deleteAssociations, deleteConfig, deleteMode, deleteSchemaVersion, deleteSchemaVersion, deleteSubject, deleteSubject, getAllContexts, getAllSubjects, getAllSubjects, getAllSubjectsById, getAllSubjectsByPrefix, getAllVersions, getAllVersions, getAllVersionsById, getAssociationsByResourceId, getAssociationsByResourceName, getAssociationsBySubject, getByVersion, getConfig, getConfig, getGuid, getGuid, getId, getId, getIdWithResponse, getLatestSchemaMetadata, getLatestWithMetadata, getMode, getMode, getSchemaByGuid, getSchemaByGuidFromRegistry, getSchemaById, getSchemaByIdFromRegistry, getSchemaBySubjectAndId, getSchemaEntityByIdFromRegistry, getSchemaEntityBySubjectAndId, getSchemaMetadata, getSchemaMetadata, getSchemaProviders, getSchemaRegistryDeployment, getSchemaRegistryServerVersion, getSchemas, getVersion, getVersion, mutateAssociations, parseSchema, parseSchema, parseSchemaOrElseThrow, register, register, register, registerWithResponse, setMode, setMode, setMode, testCompatibility, testCompatibilityVerbose, testCompatibilityVerbose, updateConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.confluent.dekregistry.client.DekRegistryClient
closeMethods inherited from interface io.confluent.kafka.schemaregistry.client.SchemaRegistryClient
deleteCompatibility, deleteSchemaVersion, deleteSchemaVersion, deleteSubject, deleteSubject, getById, getByID, getBySubjectAndId, getBySubjectAndID, getCompatibility, getCompatibility, getId, getVersion, parseSchema, register, register, registerWithResponse, tenant, testCompatibility, updateCompatibility
-
Constructor Details
-
CachedDekRegistryClient
-
CachedDekRegistryClient
-
CachedDekRegistryClient
-
CachedDekRegistryClient
-
CachedDekRegistryClient
-
CachedDekRegistryClient
public CachedDekRegistryClient(DekRegistryRestService restService, int cacheCapacity, int cacheExpirySecs, Map<String, ?> configs, List<SchemaProvider> providers, Map<String, String> httpHeaders, com.google.common.base.Ticker ticker)
-
-
Method Details
-
ticker
public com.google.common.base.Ticker ticker()- Specified by:
tickerin interfaceDekRegistryClient- Specified by:
tickerin interfaceSchemaRegistryClient- Overrides:
tickerin classCachedSchemaRegistryClient
-
listKeks
- Specified by:
listKeksin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
listKeks
public List<String> listKeks(List<String> subjectPrefix, boolean lookupDeleted) throws IOException, RestClientException - Specified by:
listKeksin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
listKeksWithPagination
public List<String> listKeksWithPagination(List<String> subjectPrefix, boolean lookupDeleted, int offset, int limit) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getKek
- Specified by:
getKekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
listDeks
public List<String> listDeks(String kekName, boolean lookupDeleted) throws IOException, RestClientException - Specified by:
listDeksin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
listDeksWithPagination
public List<String> listDeksWithPagination(String kekName, boolean lookupDeleted, int offset, int limit) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
listDekVersions
public List<Integer> listDekVersions(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException - Specified by:
listDekVersionsin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
listDekVersionsWithPagination
public List<Integer> listDekVersionsWithPagination(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted, int offset, int limit) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getDek
public Dek getDek(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException - Specified by:
getDekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
getDekVersion
public Dek getDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException - Specified by:
getDekVersionin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
getDekLatestVersion
public Dek getDekLatestVersion(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException - Specified by:
getDekLatestVersionin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
createKek
public Kek createKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared) throws IOException, RestClientException- Specified by:
createKekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
createKek
public Kek createKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared, boolean deleted) throws IOException, RestClientException- Specified by:
createKekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
createKek
public Kek createKek(Map<String, String> requestProperties, String name, String kmsType, String kmsKeyId, Map<String, throws IOException, RestClientExceptionString> kmsProps, String doc, boolean shared, boolean deleted) - Throws:
IOExceptionRestClientException
-
createDek
public Dek createDek(String kekName, String subject, DekFormat algorithm, String encryptedKeyMaterial) throws IOException, RestClientException - Specified by:
createDekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
createDek
public Dek createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial) throws IOException, RestClientException - Specified by:
createDekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
createDek
public Dek createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted) throws IOException, RestClientException - Specified by:
createDekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
createDek
public Dek createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted, boolean rewrap) throws IOException, RestClientException - Specified by:
createDekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
createDek
public Dek createDek(Map<String, String> requestProperties, String kekName, String subject, Integer version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
createDek
public Dek createDek(Map<String, String> requestProperties, String kekName, String subject, Integer version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted, boolean rewrap) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
updateKek
public Kek updateKek(String name, Map<String, String> kmsProps, String doc, Boolean shared) throws IOException, RestClientException- Specified by:
updateKekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
updateKek
public Kek updateKek(Map<String, String> requestProperties, String name, Map<String, throws IOException, RestClientExceptionString> kmsProps, String doc, Boolean shared) - Throws:
IOExceptionRestClientException
-
deleteKek
public void deleteKek(String kekName, boolean permanentDelete) throws IOException, RestClientException - Specified by:
deleteKekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
deleteKek
public void deleteKek(Map<String, String> requestProperties, String kekName, boolean permanentDelete) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteDek
public void deleteDek(String kekName, String subject, DekFormat algorithm, boolean permanentDelete) throws IOException, RestClientException - Specified by:
deleteDekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
deleteDek
public void deleteDek(Map<String, String> requestProperties, String kekName, String subject, DekFormat algorithm, boolean permanentDelete) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteDekVersion
public void deleteDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean permanentDelete) throws IOException, RestClientException - Specified by:
deleteDekVersionin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
deleteDekVersion
public void deleteDekVersion(Map<String, String> requestProperties, String kekName, String subject, int version, DekFormat algorithm, boolean permanentDelete) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
undeleteKek
- Specified by:
undeleteKekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
undeleteKek
public void undeleteKek(Map<String, String> requestProperties, String kekName) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
undeleteDek
public void undeleteDek(String kekName, String subject, DekFormat algorithm) throws IOException, RestClientException - Specified by:
undeleteDekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
undeleteDek
public void undeleteDek(Map<String, String> requestProperties, String kekName, String subject, DekFormat algorithm) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
undeleteDekVersion
public void undeleteDekVersion(String kekName, String subject, int version, DekFormat algorithm) throws IOException, RestClientException - Specified by:
undeleteDekVersionin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
undeleteDekVersion
public void undeleteDekVersion(Map<String, String> requestProperties, String kekName, String subject, int version, DekFormat algorithm) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
testKek
- Specified by:
testKekin interfaceDekRegistryClient- Throws:
IOExceptionRestClientException
-
reset
public void reset()- Specified by:
resetin interfaceDekRegistryClient- Specified by:
resetin interfaceSchemaRegistryClient- Overrides:
resetin classCachedSchemaRegistryClient
-