I have attached my kafka streams instance with an implementation of org.apache.kafka.streams.processor.StateRestoreListener interface. I have used Processor API to define my streams and it has a state store. Basically the job of streams is to read data from an input topic and store the data in state store.
I want to know under what situations this StateRestoreListener gets invoked.
Does it get invoked when I start streams for the first time?
Does it get invoked when I start another instance?
Does it get invoked when I stop certain instance?
and in each case .. what methods get invoke?