Class CountDownFuture
- java.lang.Object
-
- org.apache.ignite.internal.util.future.GridFutureAdapter<Void>
-
- org.apache.ignite.internal.util.future.CountDownFuture
-
- All Implemented Interfaces:
IgniteInternalFuture<Void>
public class CountDownFuture extends GridFutureAdapter<Void>
-
-
Constructor Summary
Constructors Constructor Description CountDownFuture(int cnt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterDone()booleanonDone(@Nullable Void res, @Nullable Throwable err)Callback to notify that future is finished.-
Methods inherited from class org.apache.ignite.internal.util.future.GridFutureAdapter
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, onDone, reset, result, toString
-
-
-
-
Method Detail
-
onDone
public boolean onDone(@Nullable @Nullable Void res, @Nullable @Nullable Throwable err)Callback to notify that future is finished. Note that if non-nullexception is passed in the result value will be ignored.- Overrides:
onDonein classGridFutureAdapter<Void>- Parameters:
res- Optional result.err- Optional error.- Returns:
Trueif result was set by this call.
-
afterDone
protected void afterDone()
-
-