title: Update application state after maxAttempts using spring-cloud-stream with rabbitmq
body: <p>I'm using spring-cloud-stream to communicate between services. I've configured the RepublishMessageRecoverer with 3 maxAttempts and also configured the consumer input binding with autoBindDlq and republishToDlq. </p>
  
  <p>The republish is working fine. I just would like to to detect that all attempts have been tried and update the application state so it reflects a error state. If I could get the counter also would solve my problem.</p>
  
  <p>Thanks! </p>