title: onPartitionsRevokedBeforeCommit vs onPartitionsRevokedAfterCommit
body: <p>I am writing a Kafka consumer and for learning purpose, this time I thought of using Spring-Kafka implementation. Till now, I was using Java API for writing the consumers. </p>
  
  <p>I want to manage the offset manually, so I was searching for something similar to ConsumerRebalanceListener in Spring-Kafka package. And to my success, I came across ConsumerAwareRebalanceListener in Spring which can be used instead of ConsumerRebalanceListener. </p>
  
  <p>But when I looked at the ConsumerAwareRebalanceListener interface, could see 2 methods - onPartitionsRevokedBeforeCommit and onPartitionsRevokedAfterCommit which is not available in Kafka java API. </p>
  
  <p>Please can someone explain how/where I can use this methods ?</p>
  
  <p>P.S - Had a look at Spring-Kafka implementation, but didn't quite understand where it would be useful. </p>