@Override public String toString() { return String.format("%s[window_queue=%d,frame_queue=%d,actives=%d]", super.toString(), getWindowQueueSize(), getFrameQueueSize(), actives.size()); }
@Override public String toString() { return String.format("%s[window_queue=%d,frame_queue=%d,actives=%d]", super.toString(), getWindowQueueSize(), getFrameQueueSize(), actives.size()); }
/** * Invoked when the sub task fails. Subclasses that override this method * must always remember to call {@code super.failed(Throwable)}. */ @Override public void failed(Throwable x) { boolean failure = false; try (Locker.Lock lock = _locker.lock()) { switch (_state) { case SUCCEEDED: case FAILED: case IDLE: case CLOSED: case CALLED: // too late!. break; case PENDING: case PROCESSING: { _state = State.FAILED; failure = true; break; } default: throw new IllegalStateException(toString()); } } if (failure) onCompleteFailure(x); }
throw new IllegalStateException(toString());
/** * Invoked when the sub task fails. * Subclasses that override this method must always remember to call * {@code super.failed(Throwable)}. */ @Override public void failed(Throwable x) { boolean failure = false; try (Locker.Lock lock = _locker.lock()) { switch (_state) { case SUCCEEDED: case FAILED: case IDLE: case CLOSED: case CALLED: // too late!. break; case PENDING: case PROCESSING: { _state = State.FAILED; failure = true; break; } default: throw new IllegalStateException(toString()); } } if (failure) onCompleteFailure(x); }
throw new IllegalStateException(toString());
throw new IllegalStateException(toString());
/** * Invoked when the sub task fails. * Subclasses that override this method must always remember to call * {@code super.failed(Throwable)}. */ @Override public void failed(Throwable x) { boolean failure = false; try (Locker.Lock lock = _locker.lock()) { switch (_state) { case SUCCEEDED: case FAILED: case IDLE: case CLOSED: case CALLED: // too late!. break; case PENDING: case PROCESSING: { _state = State.FAILED; failure = true; break; } default: throw new IllegalStateException(toString()); } } if (failure) onCompleteFailure(x); }
throw new IllegalStateException(toString());
throw new IllegalStateException(toString());
throw new IllegalStateException(toString());