-
Type:
Enhancement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Resolved at Apache
-
Affects Version/s: 4.2.0-fuse-02-00
-
Fix Version/s: 4.4.0-fuse-00-27
-
Component/s: None
-
Labels:None
-
External Issue URL:
Would be nice to be able to do something like .to("nmr:contentenricher?timeout=10000"). Right now, it is not possible to specify a timeout and you have to do something like the following as a workaround:
from("direct:mytest").process(new Processor() {
|
public void process(Exchange exchange) throws Exception {
|
Future<Exchange> future = getContext().createProducerTemplate().asyncSend("nmr:contentenricher", exchange);
|
Exchange result = future.get(10000, TimeUnit.MILLISECONDS);
|
exchange.setOut(result.getOut());
|
}
|
});
|