Class ApicurioRegistryClient
java.lang.Object
ai.pipestream.registration.repository.ApicurioRegistryClient
Client for interacting with Apicurio Registry v3.
This is the secondary storage for schemas (primary is PostgreSQL).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<ApicurioRegistryClient.SchemaRegistrationResponse> createOrUpdateSchema(String serviceName, String version, String jsonSchema) Create or update a schema in Apicurio Registryio.smallrye.mutiny.Uni<ApicurioRegistryClient.SchemaRegistrationResponse> createOrUpdateSchemaWithArtifactBase(String artifactBase, String version, String jsonSchema) Create or update a schema with a custom artifact base name.io.smallrye.mutiny.Uni<ApicurioRegistryClient.SchemaRegistrationResponse> createOrUpdateSchemaWithArtifactId(String artifactId, String version, String jsonSchema) Create or update a schema with a pre-built artifact ID.io.smallrye.mutiny.Uni<Boolean> deleteArtifact(String serviceName) Delete an artifact (for cleanup)io.smallrye.mutiny.Uni<io.apicurio.registry.rest.client.models.ArtifactMetaData> getArtifactMetadata(String serviceName) Get artifact metadata Never returns null - returns a failed Uni if metadata cannot be retrieved.io.smallrye.mutiny.Uni<String> Get schema by artifact ID (legacy naming, uses versionedArtifactId internally)io.smallrye.mutiny.Uni<String> getSchemaByArtifactId(String artifactId, String version) Get schema by raw artifact IDio.smallrye.mutiny.Uni<Boolean> Check if Apicurio is healthyio.smallrye.mutiny.Uni<List<io.apicurio.registry.rest.client.models.SearchedArtifact>> List all artifacts in the group (for reconciliation)
-
Constructor Details
-
ApicurioRegistryClient
public ApicurioRegistryClient()
-
-
Method Details
-
createOrUpdateSchema
public io.smallrye.mutiny.Uni<ApicurioRegistryClient.SchemaRegistrationResponse> createOrUpdateSchema(String serviceName, String version, String jsonSchema) Create or update a schema in Apicurio Registry -
createOrUpdateSchemaWithArtifactBase
public io.smallrye.mutiny.Uni<ApicurioRegistryClient.SchemaRegistrationResponse> createOrUpdateSchemaWithArtifactBase(String artifactBase, String version, String jsonSchema) Create or update a schema with a custom artifact base name. The artifact ID will be built from the base name and version. -
createOrUpdateSchemaWithArtifactId
public io.smallrye.mutiny.Uni<ApicurioRegistryClient.SchemaRegistrationResponse> createOrUpdateSchemaWithArtifactId(String artifactId, String version, String jsonSchema) Create or update a schema with a pre-built artifact ID. The artifactId should already include the version suffix (use versionedArtifactId to build it). -
getSchemaByArtifactId
Get schema by raw artifact ID -
getSchema
Get schema by artifact ID (legacy naming, uses versionedArtifactId internally) -
isHealthy
Check if Apicurio is healthy -
listArtifacts
public io.smallrye.mutiny.Uni<List<io.apicurio.registry.rest.client.models.SearchedArtifact>> listArtifacts()List all artifacts in the group (for reconciliation) -
deleteArtifact
Delete an artifact (for cleanup) -
getArtifactMetadata
public io.smallrye.mutiny.Uni<io.apicurio.registry.rest.client.models.ArtifactMetaData> getArtifactMetadata(String serviceName) Get artifact metadata Never returns null - returns a failed Uni if metadata cannot be retrieved.
-