Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 70408 invoked from network); 12 Apr 2011 21:56:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Apr 2011 21:56:43 -0000 Received: (qmail 20081 invoked by uid 500); 12 Apr 2011 21:56:43 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 20052 invoked by uid 500); 12 Apr 2011 21:56:43 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 20044 invoked by uid 99); 12 Apr 2011 21:56:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2011 21:56:43 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2011 21:56:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B0A7D9E538 for ; Tue, 12 Apr 2011 21:56:05 +0000 (UTC) Date: Tue, 12 Apr 2011 21:56:05 +0000 (UTC) From: "Ben O'Day (JIRA)" To: dev@camel.apache.org Message-ID: <1017059108.53516.1302645365720.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1786723180.53512.1302645245740.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-3855) make aggregate() easier to use for the common case 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-3855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ben O'Day updated CAMEL-3855: ----------------------------- Attachment: CAMEL-3855.patch adds a basic "aggregate as list" strategy class and test case > make aggregate() easier to use for the common case > -------------------------------------------------- > > Key: CAMEL-3855 > URL: https://issues.apache.org/jira/browse/CAMEL-3855 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Ben O'Day > Assignee: Ben O'Day > Priority: Minor > Attachments: CAMEL-3855.patch > > > Currently, an expression and strategy are required to use aggregate(). Perhaps, we could set a default expression (constant(true), etc) and strategy (either groupExchanges() or the attached AggregateAsListStrategy, etc). > For example, either of these could make a good intuitive default (still requiring a completionSize/Interval, etc) > aggregate() == aggregate(constant(true)).groupExchanges() > or > aggregate() == aggregate(constant(true), new AggregateAsListStrategy()) > See this discussion for more information....http://camel.465427.n5.nabble.com/Default-Behavior-for-aggregate-td4296790.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira