StateRestoreListener is the contract of objects that want to be notified about the store-related events, i.e. onBatchRestored, onRestoreEnd and onRestoreStart.
|
Note
|
A Kafka Streams developer uses KafkaStreams.setGlobalStateRestoreListener method to register a StateRestoreListener in a Kafka Streams application.
|
| Method | Description |
|---|---|
|
void onBatchRestored(
TopicPartition topicPartition,
String storeName,
long batchEndOffset,
long numRestored)Used when:
|
|
void onRestoreEnd(
TopicPartition topicPartition,
String storeName,
long totalRestored)Used when:
|
|
void onRestoreStart(
TopicPartition topicPartition,
String storeName,
long startingOffset,
long endingOffset)Used when:
|
| StateRestoreListener | Description |
|---|---|