Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3BF95200B23 for ; Sun, 19 Jun 2016 09:28:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3A9BC160A53; Sun, 19 Jun 2016 07:28:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7C152160A07 for ; Sun, 19 Jun 2016 09:28:01 +0200 (CEST) Received: (qmail 44361 invoked by uid 500); 19 Jun 2016 07:28:00 -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 Delivered-To: moderator for dev@camel.apache.org Received: (qmail 72352 invoked by uid 99); 18 Jun 2016 15:28:44 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Date: Sat, 18 Jun 2016 08:28:41 -0700 (MST) From: arno noordover To: dev@camel.apache.org Message-ID: <1466263721952-5784172.post@n5.nabble.com> Subject: Return futures from mina2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Sun, 19 Jun 2016 07:28:02 -0000 Would it be a good idea to return Futures when using mina2? Could the example on http://raikblog.blogspot.nl/2013/05/apache-mina-client-side-to-correlate.html be leading in a solution like this? I suppose this would mean that: - you need to be able to set async explicitely; - a consumer should be defined async as well or notice async is chosen by itself based on the class being received; - maybe expiry of elements in the hashmap; - ... -- View this message in context: http://camel.465427.n5.nabble.com/Return-futures-from-mina2-tp5784172.html Sent from the Camel Development mailing list archive at Nabble.com.