spring-projects/spring-integration-kafka — pull request #7 by garyrussell (2014-12-01 20:37:59+00:00)
Title: INTEXT-121 Add Lifecycle to Outbound Adapter

JIRA: https://jira.spring.io/browse/INTEXT-121

When using `async` producers, the buffered messages need to be flushed.

Previously, when the context was stopped, such messages were lost.

- Implement `Lifecyle` in the outbound adapter and propagate the `stop()` to the underlying producer(s).
- Remove unused attributes from the consumer parser.
- Add a test case to show the buffered message is received after closing the producer.
- Add KafkaRunning JUnit `@Rule`