Class GlueSchemaRegistryKafkaDeserializer
- java.lang.Object
-
- com.amazonaws.services.schemaregistry.deserializers.GlueSchemaRegistryKafkaDeserializer
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.common.serialization.Deserializer<Object>
public class GlueSchemaRegistryKafkaDeserializer extends Object implements org.apache.kafka.common.serialization.Deserializer<Object>
Glue Schema Registry Kafka Generic Deserializer responsible for de-serializing
-
-
Constructor Summary
Constructors Constructor Description GlueSchemaRegistryKafkaDeserializer()Constructor used by Kafka consumer.GlueSchemaRegistryKafkaDeserializer(@NonNull Map<String,?> configs)GlueSchemaRegistryKafkaDeserializer(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialProvider, Map<String,?> configs)Constructor accepting AWSCredentialsProvider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Resource clean up for Closeable.voidconfigure(@NonNull Map<String,?> configs, boolean isKey)Configuration method for injecting configuration properties.Objectdeserialize(String topic, byte[] data)De-serialize operation for de-serializing the byte array to an Object.
-
-
-
Method Detail
-
configure
public void configure(@NonNull @NonNull Map<String,?> configs, boolean isKey)Configuration method for injecting configuration properties.- Specified by:
configurein interfaceorg.apache.kafka.common.serialization.Deserializer<Object>- Parameters:
configs- configuration elements for de-serializerisKey- true if key, false otherwise
-
deserialize
public Object deserialize(String topic, byte[] data)
De-serialize operation for de-serializing the byte array to an Object.- Specified by:
deserializein interfaceorg.apache.kafka.common.serialization.Deserializer<Object>- Parameters:
topic- Kafka topic namedata- serialized data to be de-serialized in byte array- Returns:
- de-serialized object instance
-
close
public void close()
Resource clean up for Closeable. This method internally shuts down the background thread for publishing cloud watch metrics. After this is called, a new instance of this class should be created to enable the metrics publishing feature.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.kafka.common.serialization.Deserializer<Object>
-
-