Class DefaultFallbackArtifactProvider
- java.lang.Object
-
- io.apicurio.registry.serde.fallback.DefaultFallbackArtifactProvider
-
- All Implemented Interfaces:
FallbackArtifactProvider
public class DefaultFallbackArtifactProvider extends Object implements FallbackArtifactProvider
Default implementation of FallbackArtifactProvider that simply uses config properties- Author:
- Fabian Martinez
-
-
Constructor Summary
Constructors Constructor Description DefaultFallbackArtifactProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Map<String,Object> configs, boolean isKey)ArtifactReferenceget(String topic, org.apache.kafka.common.header.Headers headers, byte[] data)Returns an ArtifactReference that will be used as the fallback to search in the registry for the artifact that will be used to deserialize the kafka messagebooleanisConfigured()
-
-
-
Method Detail
-
configure
public void configure(Map<String,Object> configs, boolean isKey)
- Specified by:
configurein interfaceFallbackArtifactProvider- See Also:
io.apicurio.registry.serde.FallbackArtifactProvider#configure(java.util.Map, boolean)
-
get
public ArtifactReference get(String topic, org.apache.kafka.common.header.Headers headers, byte[] data)
Description copied from interface:FallbackArtifactProviderReturns an ArtifactReference that will be used as the fallback to search in the registry for the artifact that will be used to deserialize the kafka message- Specified by:
getin interfaceFallbackArtifactProviderheaders- , can be null- Returns:
- See Also:
FallbackArtifactProvider.get(java.lang.String, org.apache.kafka.common.header.Headers, byte[])
-
isConfigured
public boolean isConfigured()
-
-