void onBatchRestored(
TopicPartition topicPartition,
String storeName,
long batchEndOffset,
long numRestored)
StateRestoreListener Contract
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 |
---|---|
|
Used when:
|
|
Used when:
|
|
Used when:
|
StateRestoreListener | Description |
---|---|