Package cn.sliew.milky.concurrent
Interface ProgressiveFutureListener<F extends ProgressiveFuture<?>>
-
- All Superinterfaces:
EventListener,FutureListener<F>
public interface ProgressiveFutureListener<F extends ProgressiveFuture<?>> extends FutureListener<F>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonProgressed(F future, long progress, long total)Invoked when the operation has progressed.-
Methods inherited from interface cn.sliew.milky.concurrent.FutureListener
onComplete
-
-
-
-
Method Detail
-
onProgressed
void onProgressed(F future, long progress, long total) throws Exception
Invoked when the operation has progressed.- Parameters:
progress- the progress of the operation so far (cumulative)total- the number that signifies the end of the operation whenprogressreaches at it.-1if the end of operation is unknown.- Throws:
Exception
-
-