Examples of CancellationException


Examples of java.util.concurrent.CancellationException

        // If this thread successfully transitioned to COMPLETING, set the value
        // and exception and then release to the final state.
        this.value = v;
        // Don't actually construct a CancellationException until necessary.
        this.exception = ((finalState & (CANCELLED | INTERRUPTED)) != 0)
            ? new CancellationException("Future.cancel() was called.") : t;
        releaseShared(finalState);
      } else if (getState() == COMPLETING) {
        // If some other thread is currently completing the future, block until
        // they are done so we can guarantee completion.
        acquireShared(-1);
View Full Code Here

Examples of org.aavso.tools.vstar.exception.CancellationException

      wwt = new WeightedWaveletZTransform(obs, decay, timeDivisions);
      wwt.make_freqs_from_period_range(Math.min(minPeriod, maxPeriod),
          Math.max(minPeriod, maxPeriod), deltaPeriod);
      wwt.execute();
    } else {
      throw new CancellationException("WWZ "
          + LocaleProps.get("CANCELLED"));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.