public class CompositeSchemaUpdateHandler extends Object implements SchemaUpdateHandler
StoreUpdateHandler.ValidationStatusSCHEMA_REGISTRY| Constructor and Description |
|---|
CompositeSchemaUpdateHandler(List<SchemaUpdateHandler> handlers) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheInitialized(Map<org.apache.kafka.common.TopicPartition,Long> checkpoints)
Invoked after the cache is initialized.
|
Map<org.apache.kafka.common.TopicPartition,Long> |
checkpoint(int count)
Retrieve the offsets to checkpoint.
|
void |
close() |
void |
endBatch(int count)
Invoked after a batch of updates.
|
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
|
void |
startBatch(int count)
Invoked before a batch of updates.
|
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, waitconfigurepublic CompositeSchemaUpdateHandler(List<SchemaUpdateHandler> handlers)
public void cacheInitialized(Map<org.apache.kafka.common.TopicPartition,Long> checkpoints)
cacheInitialized in interface StoreUpdateHandler<SchemaRegistryKey,SchemaRegistryValue>public void startBatch(int count)
StoreUpdateHandlerstartBatch in interface StoreUpdateHandler<SchemaRegistryKey,SchemaRegistryValue>count - batch countpublic 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 recordpublic 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 countpublic void endBatch(int count)
StoreUpdateHandlerendBatch in interface StoreUpdateHandler<SchemaRegistryKey,SchemaRegistryValue>count - batch countpublic void close()
throws IOException
close in interface StoreUpdateHandler<SchemaRegistryKey,SchemaRegistryValue>close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2026 Confluent, Inc.. All rights reserved.