You can use a timeout of 0 for receiving with no wait, or greater than 0
for waiting a bit.
Default is -1
http://camel.apache.org/content-enricher.html
Cheers,
Taariq
On 20 Jun 2017 22:12, "Artur Jablonski" wrote:
> Right, that almost works.
>
> Now the problem I have is that when a file I ask
Right, that almost works.
Now the problem I have is that when a file I ask for doesn't exist the
consumer seems to be polling for it indefinitely. Is there a way of saying:
hey polling consumer, try n times and then give up. Throw an error or
return null. Don't insist, please.
Cheers
Artur
On 20
Thank you so much Gregor!
You pushed me in the right direction. I initially wrote a patch for S3
producer to get me what I wanted, but after seeing your reply I read about
the content enricher pattern and pollEnrich() in Camel.
This SO was helpful as well
https://stackoverflow.com/questions/36948