Hi

No this is not possible - dont delay something for 1 h.

On Thu, Nov 26, 2020 at 2:35 PM Dennis Holunder <[email protected]> wrote:
>
> Hello!
>
> Is there a way to cancel a delay in progress?
>
> .delay(new Expression() {
>     @Override
>     public <T> T evaluate(Exchange exchange, Class<T> type) {
>         return (T) getCurrentDelay();
>     }
> })
>
> for example if the current delay expression returned one hour, but
> after a few minutes it is not needed anymore?
>
> something like getContext().getRouteById(rId).getDelayerById(dId).cancel()
>
> Thanks!



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to