public interface StoreUpdateHandler<K,V> extends org.apache.kafka.common.Configurable, Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
StoreUpdateHandler.ValidationStatus |
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_REGISTRY |
| Modifier and Type | Method and Description |
|---|---|
default void |
cacheInitialized(Map<org.apache.kafka.common.TopicPartition,Long> checkpoints)
Invoked after the cache is initialized.
|
default Map<org.apache.kafka.common.TopicPartition,Long> |
checkpoint(int count)
Retrieve the offsets to checkpoint.
|
default void |
close() |
default void |
configure(Map<String,?> map) |
default void |
endBatch(int count)
Invoked after a batch of updates.
|
void |
handleUpdate(K key,
V value,
V oldValue,
org.apache.kafka.common.TopicPartition tp,
long offset,
long timestamp)
Invoked on every new K,V pair written to the store
|
default void |
startBatch(int count)
Invoked before a batch of updates.
|
default StoreUpdateHandler.ValidationStatus |
validateUpdate(K key,
V value,
org.apache.kafka.common.TopicPartition tp,
long offset,
long timestamp)
Invoked before every new K,V pair written to the store
|
static final String SCHEMA_REGISTRY
default void configure(Map<String,?> map)
configure in interface org.apache.kafka.common.Configurabledefault void cacheInitialized(Map<org.apache.kafka.common.TopicPartition,Long> checkpoints)
default void startBatch(int count)
count - batch countdefault StoreUpdateHandler.ValidationStatus validateUpdate(K key, V value, org.apache.kafka.common.TopicPartition tp, long offset, long timestamp)
key - Key associated with the datavalue - Data written to the storetp - Topic-partitionoffset - Offset of recordtimestamp - Timestamp of recordvoid handleUpdate(K key, V value, V oldValue, org.apache.kafka.common.TopicPartition tp, long offset, long timestamp)
key - Key associated with the datavalue - Data written to the storeoldValue - the previous value associated with key, or null if there was no mapping for keytp - Topic-partitionoffset - Offset of recordtimestamp - Timestamp of recorddefault Map<org.apache.kafka.common.TopicPartition,Long> checkpoint(int count)
count - batch countdefault void endBatch(int count)
count - batch countdefault void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2026 Confluent, Inc.. All rights reserved.