Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1B6710635 for ; Mon, 19 Jan 2015 08:38:24 +0000 (UTC) Received: (qmail 92182 invoked by uid 500); 19 Jan 2015 08:38:27 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 92146 invoked by uid 500); 19 Jan 2015 08:38:27 -0000 Mailing-List: contact dev-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list dev@ignite.incubator.apache.org Received: (qmail 92135 invoked by uid 99); 19 Jan 2015 08:38:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2015 08:38:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sboikov@gridgain.com designates 74.125.82.181 as permitted sender) Received: from [74.125.82.181] (HELO mail-we0-f181.google.com) (74.125.82.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2015 08:38:21 +0000 Received: by mail-we0-f181.google.com with SMTP id q58so30070543wes.12 for ; Mon, 19 Jan 2015 00:35:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=bunsHxVmtHxcUGXXCHh35mcDNnR0F/nPCd7ZSvNTvrM=; b=kwbb8X4Oiyg/xN8iGNyux6gIw5KyBmCD9RIS35WP3rxHBn0GGCeehvbSG6wCBdGUZ7 RaYgvQyNHcfYFp+7gA9XRs8ZPKJSnbRxkSWQWCqQOpXC1o1KMCKxq1fl/PD+3d5RsmKt EUCB7kcMrz3tziT9wjNcUlAdxhth80jgf0J33Y/QY/KvlI1AoZcmZe3rMToue8PX0+RQ a2QAD6gJsRLflf3Q3d7Up3LhRgwM/xGeX83u6VLUOMKqOhdnXnbx9yXsKLwzOrZwBmr6 UO2XonJtn6gKqLuNFt4KKWQ1xZzJbEaMZTCrTdg3CqVo0e1mFsXEbcZkV+BfI/z8qW9/ AFYQ== X-Gm-Message-State: ALoCoQnua9oTpV1rYD9PD3sBgmvb4vaTg1vDvnrBbvi/TzTd3DLqxcmZma+PJ2ca1Dhk0A3I6K5P MIME-Version: 1.0 X-Received: by 10.194.239.134 with SMTP id vs6mr54505149wjc.19.1421656545248; Mon, 19 Jan 2015 00:35:45 -0800 (PST) Received: by 10.180.39.174 with HTTP; Mon, 19 Jan 2015 00:35:45 -0800 (PST) In-Reply-To: References: Date: Mon, 19 Jan 2015 11:35:45 +0300 Message-ID: Subject: Re: Cache.invoke(...) vs GridCache.transform() methods From: Semyon Boikov To: dev@ignite.incubator.apache.org Content-Type: multipart/alternative; boundary=089e01493b405f4bd8050cfd35fa X-Virus-Checked: Checked by ClamAV on apache.org --089e01493b405f4bd8050cfd35fa Content-Type: text/plain; charset=UTF-8 Currrent implementation of Cache.invoke is slightly changed implementation of transform(), so Cache.invoke supports transactions. On Sun, Jan 18, 2015 at 3:49 AM, Dmitriy Setrakyan wrote: > I had a discussion with Alexey G. today and it turns out that we may have > missed an important use case that was available with > GridCache.transform(...) method (which was removed) and is no longer > supported with Cache.invoke(...). > > The difference is that Cache.invoke(EntryProcessor, ...) does everything > GridCache.transform(...) could do, except transactions. > GridCache.transform(...) methods, however, can be invoked within > transactions. > > Is it possible to support transactions with Cache.invoke(EntryProcessor, > ...) methods? > > Or should we bring the transform(..) methods back? If yes, then they should > look like this: > ---- > T transform(K, IgniteClosure) > T transformAll(Collection, IgniteClosure>) > ---- > > Thoughts? (especially Alexey G, and Semyon, since you were working on this > feature) > > D. > --089e01493b405f4bd8050cfd35fa--