Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44F32188DC for ; Sat, 24 Oct 2015 09:40:28 +0000 (UTC) Received: (qmail 76211 invoked by uid 500); 24 Oct 2015 09:40:28 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 76172 invoked by uid 500); 24 Oct 2015 09:40:27 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 76160 invoked by uid 99); 24 Oct 2015 09:40:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Oct 2015 09:40:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B7DF12C14F3 for ; Sat, 24 Oct 2015 09:40:27 +0000 (UTC) Date: Sat, 24 Oct 2015 09:40:27 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-9249) timer - Allow to specify a delay of -1 or something to indicate loop asap forever MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14972507#comment-14972507 ] Claus Ibsen commented on CAMEL-9249: ------------------------------------ Yes good point. You are welcome to try to take a look how to implement this. > timer - Allow to specify a delay of -1 or something to indicate loop asap forever > --------------------------------------------------------------------------------- > > Key: CAMEL-9249 > URL: https://issues.apache.org/jira/browse/CAMEL-9249 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Claus Ibsen > Fix For: 2.17.0 > > > If you want to let a route trigger as fast as possible, then by settinh > from timer:fast?delay=-1 > to http blah > then with the timer we can detect its a delay < 0 and then instead of using a timer, then do a processor that's in a while loop and then keep routing > {code} > while (isRunAllowed) { > create exchange > process exchange > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)