Re: Policy to wrap route with a cache

2018-07-02 Thread Ralf Claussnitzer
Hi Balazs, good work. I was thinking of doing such thing myself. It think the Policy interface is the way to go, since it wraps all the processors. How about Endpoints (consumers/producers)? Would processor policies work for them as well? The code looks pretty complicated though. Could you

Policy to wrap route with a cache

2018-06-27 Thread Balazs Szeti
Hi Camel Users, In Spring we have the @Cacheable annotation that provides an easy way to wrap a method call with a cache. The method result is cached and the method is not executed the next time the it's ca