CAMEL-11212 Don't allow Salesforce HTTP client ...

...to stop with outstanding requests

This introduces a `Phaser` to await for any in-flight requests to
complete before the client is allowed to stop.

This should not block as long as the
`BufferingResponseListener::onComplete` is invoked at the end of every
request. And that is guaranteed by the `CompleteListener::onComplete`
contract.
2 files changed