ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Gura <ag...@apache.org>
Subject Re: code refactoring suggestion
Date Thu, 02 Mar 2017 12:47:37 GMT
Aleksey,

if you talk about fut.listen() then it doesn't make sense. listen()
call checks whether future is already completed and if it completed
invokes passed listener from current thread.

On Thu, Mar 2, 2017 at 12:42 PM, ALEKSEY KUZNETSOV
<alkuznetsov.sb@gmail.com> wrote:
> Hi all ! During pessimistic transaction we execute prepare phase at
> org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxLocal#commitAsync
> after executing prepareAsync();
> We bind listener on prepare future.
> Perhaps its better initially bind listener and then execute fut.prepare(); ?
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*

Mime
View raw message