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 170DC2004F5 for ; Fri, 1 Sep 2017 12:47:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 143E516CCC0; Fri, 1 Sep 2017 10:47:17 +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 62A7B16CCBD for ; Fri, 1 Sep 2017 12:47:16 +0200 (CEST) Received: (qmail 21677 invoked by uid 500); 1 Sep 2017 10:47:15 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 21665 invoked by uid 99); 1 Sep 2017 10:47:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2017 10:47:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4ECDCD0B5E for ; Fri, 1 Sep 2017 10:47:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.401 X-Spam-Level: X-Spam-Status: No, score=-0.401 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xGjlzDVPNgmP for ; Fri, 1 Sep 2017 10:47:13 +0000 (UTC) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 558485FC6C for ; Fri, 1 Sep 2017 10:47:13 +0000 (UTC) Received: by mail-io0-f171.google.com with SMTP id b2so14192381iof.0 for ; Fri, 01 Sep 2017 03:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=IsimA05jQzbv6JXZ4Te2kzI9fSjAUh79sPcCNXJfBN4=; b=ma7Xl0k87B6qbrZBJZrXZG5y/NKq88l36AqgL197ztCR+J6yyRo0n+UeXlxStqufUz ecX3VDz5h8nX9yQqU4O1Qxs4JoYDrlsaw1T5iXVcHc+VEajLMKVOdkVp+4FlUnn2DgvL 1MXEGq6ePBBQolp4aUlfhV/iK8mqhnfui83sbZFetOkzJuNnCUYc4PuqZ0P16gqu9+2o Z6aBddvbwqDKT23Act22tLIrG7XbfQB1K7fvKNgJM/4WlUMNvSv+6b9zLJCpYj61Jb7h zByTPsPjmlSImIdpKpO9Z+wYotUfCVWRCvtoVU7xUgXBuGvO03Jx3gEuwNSjKT8OkxAZ c8Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=IsimA05jQzbv6JXZ4Te2kzI9fSjAUh79sPcCNXJfBN4=; b=m9E19vK/hro1xOq2deTqBWpzHC/zMlsMJr25UqTyOg/U/K5+TF0o/41IuoRrVteRxC HxeFPJ6RZi/I4OSJbzyDOQi0ISa6BoqPB39bAiOsxRA/96Z78pNsYROPdqalzTu59TvE ngIrYDh45UtAxjyjvMg5KBzfaNsPeZbSzEeUDS/fSZ+5y0Vv+i7RsUuiey6WwQNy59ts HZHpCACTBOCJg+DRx+OBW3gMHMhVHE3g3NUWpKKpwC7FKyKz/PG+NqSFelWllAm0v1eQ V7xyUYV3oFXuDIvCymmB3cV5qPg6xKSfldwAz/4osEsZpCDWn3EH6rEi0NvcZY2YRZxJ kuTw== X-Gm-Message-State: AHPjjUhuST5UQ15+NW9vPIE19etCV968SbbRvkkhegOYgs0eRqMNzN85 NvjOjNL0TIjmJCu4f72EUoHif60+Yg== X-Google-Smtp-Source: ADKCNb6HvWG5tchZ69+7tfyfIp9eydtJOUKSPQF4lSErAlxxXqdcvnnfq9E6JPqhTut72jvGjZvtu1RN4oQAGyhl8ik= X-Received: by 10.107.20.207 with SMTP id 198mr1195787iou.356.1504262832321; Fri, 01 Sep 2017 03:47:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dmitry Pavlov Date: Fri, 01 Sep 2017 10:47:01 +0000 Message-ID: Subject: Re: IgniteFuture -> CompletableFuture To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="001a114fce5ec4fb8605581e7bc3" archived-at: Fri, 01 Sep 2017 10:47:17 -0000 --001a114fce5ec4fb8605581e7bc3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable We can build project using java 8 partially for java 7 and partially for java 8 (target bytecode version). I guess for end user it will be something like 2 artifacts to be dependent from - group: 'org.apache.ignite', name: 'ignite-core', version: '2.3' - group: 'org.apache.ignite', name: 'ignite-core8', version: '2.3' Am I right? But what will we do with ignite-core8 when we support Java8 in the long run =D0=BF=D1=82, 1 =D1=81=D0=B5=D0=BD=D1=82. 2017 =D0=B3. =D0=B2 13:35, Dmitri= y Setrakyan : > On Thu, Aug 31, 2017 at 3:39 PM, Vladimir Ozerov > wrote: > > > There is no need to migrate to Java 8 to support CompletableFuture. > Create > > separate Maven project and compile it with Java 8 - this is it. > > > > Vova, I am not sure I understand. How will it be released? > > > > > > On Thu, Aug 31, 2017 at 3:28 PM, Dmitry Pavlov > > wrote: > > > > > +1 for migrating to java 8. > > > > > > Sincerely, > > > Dmitriy Pavlov > > > > > > > > > On =D1=87=D1=82, 31 =D0=B0=D0=B2=D0=B3. 2017 =D0=B3., 11:03 Yakov Zhd= anov > wrote: > > > > > > > CompletableFuture is part of java 8. > > > > > > > > --Yakov > > > > > > > > 2017-08-31 4:46 GMT+03:00 Dmitriy Setrakyan = : > > > > > > > > > Igniters, > > > > > > > > > > I received the following proposal in my blog. I think this is > useful. > > > Any > > > > > thoughts? > > > > > > > > > > Please extend IgniteFuture by conversion method to > > CompletableFuture. I > > > > > > bored to write something like this: > > > > > > > > > > > > > > > > asyncCache.invoke(key, entryProcessor); > > > > > > CompletableFuture completableFuture =3D new CompletableFuture<>= (); > > > > > > IgniteFuture igniteFuture =3D asyncCache.future(); > > > > > > IgniteInClosure> listener =3D (IgniteInClosure>) > > completedIgniteFuture > > > > -> { > > > > > > Throwable exception =3D null; > > > > > > T result =3D null; > > > > > > try { > > > > > > result =3D completedIgniteFuture.get(); > > > > > > } catch (Throwable t) { > > > > > > exception =3D t; > > > > > > } > > > > > > if (exception !=3D null) { > > > > > > completableFuture.completeExceptionally(exception); > > > > > > } else { > > > > > > completableFuture.complete(result); > > > > > > } > > > > > > }; > > > > > > igniteFuture.listen(listener); > > > > > > return completableFuture; > > > > > > > > > > > > > > > --001a114fce5ec4fb8605581e7bc3--