Class CountDownFuture

java.lang.Object
org.apache.ignite.internal.util.future.GridFutureAdapter<Void>
org.apache.ignite.internal.util.future.CountDownFuture
All Implemented Interfaces:
org.apache.ignite.internal.IgniteInternalFuture<Void>

public class CountDownFuture extends GridFutureAdapter<Void>
  • Constructor Details

    • CountDownFuture

      public CountDownFuture(int cnt)
      Parameters:
      cnt - Number of completing parties.
  • Method Details

    • onDone

      public boolean onDone(Void res, Throwable err)
      Callback to notify that future is finished. Note that if non-null exception is passed in the result value will be ignored.
      Overrides:
      onDone in class GridFutureAdapter<Void>
      Parameters:
      res - Optional result.
      err - Optional error.
      Returns:
      True if result was set by this call.
    • afterDone

      protected void afterDone()