Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 32451 invoked from network); 23 Oct 2008 20:57:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2008 20:57:40 -0000 Received: (qmail 99196 invoked by uid 500); 23 Oct 2008 20:57:42 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 99113 invoked by uid 500); 23 Oct 2008 20:57:41 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 99102 invoked by uid 99); 23 Oct 2008 20:57:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2008 13:57:41 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2008 20:56:28 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Kt7Ex-00037P-4c for camel-user@activemq.apache.org; Thu, 23 Oct 2008 13:57:07 -0700 Message-ID: <20139112.post@talk.nabble.com> Date: Thu, 23 Oct 2008 13:57:07 -0700 (PDT) From: Kaj To: camel-user@activemq.apache.org Subject: Small API change suggestion, TimeUnit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kaj@finally.se X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I just went to Bruce Snyder's presentation on Camel at Software Summit. It was a great session, and it looks like Camel is really great, but I saw that something could be made a bit better :) Some methods in the API takes a time value. The time value is in milliseconds, and some of the methods are named something like fooMs, while some others only are named foo. Knowing how much 24000 ms is isn't the easiest thing. Why not overload the metods, or change the API so that the methods instead takes a TimeUnit and a value as argument. E.g. TimeUnit.MINUTES, 5. (I didn't know if I should have posted this in the user list or the developer list so I posted it here). Kaj -- View this message in context: http://www.nabble.com/Small-API-change-suggestion%2C-TimeUnit-tp20139112s22882p20139112.html Sent from the Camel - Users mailing list archive at Nabble.com.