ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Tupitsyn <ptupit...@gridgain.com>
Subject Re: A Future with intermediate progress?
Date Wed, 14 Oct 2015 14:03:49 GMT
Hi,

Another common way of progress reporting is to provide overload for the
operation, e.g.
IgniteFuture doSomething();
IgniteFuture doSomething(Progress progress);

where Progress interface has a single "report(T)" method, and it is up to
user to implement it.

Thanks,

On Wed, Oct 14, 2015 at 4:50 PM, Ivan Veselovskiy <iveselovskiy@gridgain.com
> wrote:

> IgniteFuture is an interface to pass the control upon an action completion.
> But the action can be long running, and may have some intermediate
> completion stages, e.g. data loading action progress can be measured as
> loaded data percentage.
> May it make sense to have an IgniteFuture subclass like
> IgniteProgressableFuture with method #getProgress() : double ?
>



-- 
-- 
Pavel Tupitsyn
GridGain Systems, Inc.
www.gridgain.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message