/** * @throws CancellationException {@inheritDoc} */ @Override public R get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return sync.innerGet(unit.toNanos(timeout)); }
/** * @throws CancellationException {@inheritDoc} */ @Override public R get() throws InterruptedException, ExecutionException { return sync.innerGet(); }
/** * @throws CancellationException {@inheritDoc} */ @Override public R get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return sync.innerGet(unit.toNanos(timeout)); }
/** * @throws CancellationException {@inheritDoc} */ @Override public R get() throws InterruptedException, ExecutionException { return sync.innerGet(); }
/** * Set the result value and notify about operation completion. * * @param result the result value */ @Override public void result(R result) { sync.innerSet(result); }
/** * Notify about the failure, occurred during asynchronous operation execution. * * @param failure */ @Override public void failure(Throwable failure) { sync.innerSetException(failure); }
/** * {@inheritDoc} */ @Override public boolean isCancelled() { return sync.innerIsCancelled(); }
/** * Set the result value and notify about operation completion. * * @param result the result value */ @Override public void result(R result) { sync.innerSet(result); }
/** * @throws CancellationException {@inheritDoc} */ @Override public R get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return sync.innerGet(unit.toNanos(timeout)); }
/** * @throws CancellationException {@inheritDoc} */ @Override public R get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return sync.innerGet(unit.toNanos(timeout)); }
/** * @throws CancellationException {@inheritDoc} */ @Override public R get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return sync.innerGet(unit.toNanos(timeout)); }
/** * @throws CancellationException {@inheritDoc} */ @Override public R get() throws InterruptedException, ExecutionException { return sync.innerGet(); }
/** * {@inheritDoc} */ @Override public boolean isCancelled() { return sync.innerIsCancelled(); }
/** * Set the result value and notify about operation completion. * * @param result the result value */ @Override public void result(R result) { sync.innerSet(result); }
/** * Set the result value and notify about operation completion. * * @param result the result value */ @Override public void result(R result) { sync.innerSet(result); }
/** * Notify about the failure, occurred during asynchronous operation execution. * * @param failure */ @Override public void failure(Throwable failure) { sync.innerSetException(failure); }
/** * Notify about the failure, occurred during asynchronous operation execution. * * @param failure */ @Override public void failure(Throwable failure) { sync.innerSetException(failure); }
/** * Notify about the failure, occurred during asynchronous operation execution. * * @param failure */ @Override public void failure(Throwable failure) { sync.innerSetException(failure); }
/** * {@inheritDoc} */ @Override public boolean isCancelled() { return sync.innerIsCancelled(); }
/** * {@inheritDoc} */ @Override public boolean cancel(boolean mayInterruptIfRunning) { return sync.innerCancel(mayInterruptIfRunning); }