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 <[email protected]
> 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

Reply via email to