-
Nested Class Summary
Nested Classes
-
-
Method Summary
default void
Invoked after the cache is initialized.
default Map<org.apache.kafka.common.TopicPartition,Long>
Retrieve the offsets to checkpoint.
default void
default void
default void
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
init(Map<org.apache.kafka.common.TopicPartition,Long> checkpoints)
Invoked before the cache is initialized.
default void
Invoked before a batch of updates.
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
-
Field Details
-
SCHEMA_REGISTRY
static final String SCHEMA_REGISTRY
- See Also:
-
-
Method Details
-
-
-
cacheInitialized
default void cacheInitialized(Map<org.apache.kafka.common.TopicPartition,Long> checkpoints)
Invoked after the cache is initialized.
-
startBatch
default void startBatch(int count)
Invoked before a batch of updates.
- Parameters:
count - batch count
-
validateUpdate
Invoked before every new K,V pair written to the store
- Parameters:
key - Key associated with the data
value - Data written to the store
tp - Topic-partition
offset - Offset of record
timestamp - Timestamp of record
-
handleUpdate
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
- Parameters:
key - Key associated with the data
value - Data written to the store
oldValue - the previous value associated with key, or null if there was no mapping for key
tp - Topic-partition
offset - Offset of record
timestamp - Timestamp of record
-
checkpoint
default Map<org.apache.kafka.common.TopicPartition,Long> checkpoint(int count)
Retrieve the offsets to checkpoint.
- Parameters:
count - batch count
- Returns:
- the offsets to checkpoint, or null
-
endBatch
default void endBatch(int count)
Invoked after a batch of updates.
- Parameters:
count - batch count
-