/** {@inheritDoc} */ @Override public boolean isCancelled() { return fut.isCancelled(); } }
/** * @param fut Execution future. * @throws InterruptedException Thrown if wait was interrupted. */ @SuppressWarnings({"UnconditionalWait"}) private void waitForExecution(IgniteFuture fut) throws InterruptedException { long sleep = 250; long threshold = System.currentTimeMillis() + WAIT_TIMEOUT; do synchronized (mux) { mux.wait(sleep); } while (fut != null && !fut.isDone() && !fut.isCancelled() && threshold > System.currentTimeMillis()); assert fut == null || fut.isDone(); }
/** {@inheritDoc} */ @Override public boolean isCancelled() { return fut.isCancelled(); } }