public class KafkaStoreMessageHandler extends Object implements SchemaUpdateHandler
StoreUpdateHandler.ValidationStatusSCHEMA_REGISTRY| Constructor and Description |
|---|
KafkaStoreMessageHandler(KafkaSchemaRegistry schemaRegistry,
LookupCache<SchemaRegistryKey,SchemaRegistryValue> lookupCache,
IdGenerator idGenerator) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
canonicalize(SchemaProvider schemaProvider,
SchemaValue schemaValue) |
Map<org.apache.kafka.common.TopicPartition,Long> |
checkpoint(int count)
Retrieve the offsets to checkpoint.
|
void |
handleUpdate(SchemaRegistryKey key,
SchemaRegistryValue value,
SchemaRegistryValue oldValue,
org.apache.kafka.common.TopicPartition tp,
long offset,
long timestamp)
Invoked on every new schema written to the Kafka store
|
StoreUpdateHandler.ValidationStatus |
validateUpdate(SchemaRegistryKey key,
SchemaRegistryValue value,
org.apache.kafka.common.TopicPartition tp,
long offset,
long timestamp)
Invoked before every new K,V pair written to the store
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcacheInitialized, close, configure, endBatch, startBatchpublic KafkaStoreMessageHandler(KafkaSchemaRegistry schemaRegistry, LookupCache<SchemaRegistryKey,SchemaRegistryValue> lookupCache, IdGenerator idGenerator)
public StoreUpdateHandler.ValidationStatus validateUpdate(SchemaRegistryKey key, SchemaRegistryValue value, org.apache.kafka.common.TopicPartition tp, long offset, long timestamp)
validateUpdate in interface StoreUpdateHandler<SchemaRegistryKey,SchemaRegistryValue>key - Key associated with the datavalue - Data written to the storetp - Topic-partitionoffset - Offset of recordtimestamp - Timestamp of recordprotected static void canonicalize(SchemaProvider schemaProvider, SchemaValue schemaValue)
public void handleUpdate(SchemaRegistryKey key, SchemaRegistryValue value, SchemaRegistryValue oldValue, org.apache.kafka.common.TopicPartition tp, long offset, long timestamp)
handleUpdate in interface StoreUpdateHandler<SchemaRegistryKey,SchemaRegistryValue>key - Key associated with the schema.value - Value written to the Kafka lookupCacheoldValue - the previous value associated with key, or null if there was no mapping for keytp - Topic-partitionoffset - Offset of recordtimestamp - Timestamp of recordpublic Map<org.apache.kafka.common.TopicPartition,Long> checkpoint(int count)
StoreUpdateHandlercheckpoint in interface StoreUpdateHandler<SchemaRegistryKey,SchemaRegistryValue>count - batch countCopyright © 2026 Confluent, Inc.. All rights reserved.