@ApplicationScoped public class RegistryStorageFacadeImpl extends Object implements RegistryStorageFacade
Constructor and Description |
---|
RegistryStorageFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
long |
deleteSchema(String subject,
String versionString) |
SortedSet<Long> |
deleteSubject(String subject) |
Schema |
findSchemaWithSubject(String subject,
boolean checkDeletedSchema,
String schema) |
String |
getSchema(Integer id) |
Schema |
getSchema(String subject,
String versionString) |
Set<String> |
listSubjects() |
List<Integer> |
listVersions(String subject) |
CompletionStage<Long> |
registerSchema(String subject,
Integer id,
Integer version,
String schema) |
public Set<String> listSubjects()
listSubjects
in interface RegistryStorageFacade
public SortedSet<Long> deleteSubject(String subject) throws ArtifactNotFoundException, RegistryStorageException
deleteSubject
in interface RegistryStorageFacade
ArtifactNotFoundException
RegistryStorageException
public String getSchema(Integer id) throws ArtifactNotFoundException, RegistryStorageException
getSchema
in interface RegistryStorageFacade
ArtifactNotFoundException
RegistryStorageException
public Schema getSchema(String subject, String versionString) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
getSchema
in interface RegistryStorageFacade
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
public List<Integer> listVersions(String subject) throws ArtifactNotFoundException, RegistryStorageException
listVersions
in interface RegistryStorageFacade
ArtifactNotFoundException
RegistryStorageException
public Schema findSchemaWithSubject(String subject, boolean checkDeletedSchema, String schema) throws ArtifactNotFoundException, RegistryStorageException
findSchemaWithSubject
in interface RegistryStorageFacade
ArtifactNotFoundException
RegistryStorageException
public CompletionStage<Long> registerSchema(String subject, Integer id, Integer version, String schema) throws ArtifactAlreadyExistsException, ArtifactNotFoundException, RegistryStorageException
registerSchema
in interface RegistryStorageFacade
ArtifactAlreadyExistsException
ArtifactNotFoundException
RegistryStorageException
public long deleteSchema(String subject, String versionString) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
deleteSchema
in interface RegistryStorageFacade
ArtifactNotFoundException
VersionNotFoundException
RegistryStorageException
Copyright © 2020 Red Hat. All rights reserved.