title: Spring Cloud Stream RabbitMQ wait for publisher confirms
body: <p>I am using Spring Cloud Stream with the RabbitMQ binder. I use the StreamBridge to send messages to a destination. I want to send a message with StreamBridge and after that synchronously wait for the publisher confirm (to make sure the message was received by the broker). Is that possible using Spring Cloud Stream? I have found the <code>RabbitTemplate</code>'s  <code>waitForConfirms</code> method and i have <code>publisherConfirmType: simple</code> and <code>publisherReturns: true</code> set in my configuration. But i don't know how to access the method with the RabbitTemplate since i don't use it because i'm using the StreamBridge. If i Autowire a RabbitTemplate and call <code>waitForConfirms</code> after my StreamBridge send call, it waits forever (nothing happens). I'm looking for an option like with the Kafka binder. There you can set the Producer to &quot;sync&quot; and &quot;requiredAcks&quot; to 1 to wait for publisher acks.</p>
  <p>Thanks for any help!</p>