private void done(final T value, final TaskLogger taskLogger) { if (transitionDone()) { traceDone(value); getSettableDelegate().done(value); taskLogger.logTaskEnd(BaseTask.this, _traceValueProvider); } }
@Override public boolean cancel(final Exception rootReason) { if (transitionCancel(rootReason)) { final Exception reason = new CancellationException(rootReason); traceFailure(reason); getSettableDelegate().fail(reason); return true; } return false; }
private void fail(final Throwable error, final TaskLogger taskLogger) { if (transitionDone()) { appendTaskStackTrace(error); traceFailure(error); getSettableDelegate().fail(error); taskLogger.logTaskEnd(BaseTask.this, _traceValueProvider); } }
@Override public boolean cancel(final Exception rootReason) { if (transitionCancel(rootReason)) { final Exception reason = new CancellationException(rootReason); traceFailure(reason); getSettableDelegate().fail(reason); return true; } return false; }
private void done(final T value, final TaskLogger taskLogger) { if (transitionDone()) { traceDone(value); getSettableDelegate().done(value); taskLogger.logTaskEnd(BaseTask.this, _traceValueProvider); } }
private void fail(final Throwable error, final TaskLogger taskLogger) { if (transitionDone()) { appendTaskStackTrace(error); traceFailure(error); getSettableDelegate().fail(error); taskLogger.logTaskEnd(BaseTask.this, _traceValueProvider); } }