public abstract class AbstractCrudIdStrategy<T> extends Object implements GlobalIdStrategy<T>
Constructor and Description |
---|
AbstractCrudIdStrategy() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterCreateArtifact(T schema,
io.apicurio.registry.rest.beans.ArtifactMetaData amd) |
long |
findId(RegistryService service,
String artifactId,
io.apicurio.registry.types.ArtifactType artifactType,
T schema)
For a given topic and message, returns the artifact id under which the
schema should be registered in the registry.
|
protected abstract long |
initialLookup(RegistryService service,
String artifactId,
io.apicurio.registry.types.ArtifactType artifactType,
T schema) |
protected boolean |
isNotFound(javax.ws.rs.core.Response response) |
protected <R> R |
unwrap(CompletionStage<R> cs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toStream
protected <R> R unwrap(CompletionStage<R> cs)
protected boolean isNotFound(javax.ws.rs.core.Response response)
protected abstract long initialLookup(RegistryService service, String artifactId, io.apicurio.registry.types.ArtifactType artifactType, T schema)
protected void afterCreateArtifact(T schema, io.apicurio.registry.rest.beans.ArtifactMetaData amd)
public long findId(RegistryService service, String artifactId, io.apicurio.registry.types.ArtifactType artifactType, T schema)
GlobalIdStrategy
findId
in interface GlobalIdStrategy<T>
service
- the registry serviceartifactId
- the schema artifact idartifactType
- the artifact typeschema
- the schema of the message being serialized/deserializedCopyright © 2020 Red Hat. All rights reserved.