/** * The private method, which adds new InputElement to the input queue */ private void offer0(final InputElement inputElement) { if (switchOffExpectInput()) { // if "expect more input" switch is on - pass current input queue content upstream passPayloadUpstream(inputElement, inputQueueSize); } else { // if "expect more input" switch is off - enqueue the element if (!inputQueue.offer(inputElement)) { // Should never happen, but findbugs complains throw new IllegalStateException("New element can't be added"); } inputQueueSizeUpdater.incrementAndGet(this); final int readyBuffersCount; // double check if "expect more input" flag is still off if ((readyBuffersCount = switchOffExpectInputIfQueueNotEmpty()) > 0) { // if not - pass the input queue content upstream passPayloadUpstream(null, readyBuffersCount); } } }
/** * The private method, which adds new InputElement to the input queue */ private void offer0(final InputElement inputElement) { if (switchOffExpectInput()) { // if "expect more input" switch is on - pass current input queue content upstream passPayloadUpstream(inputElement, inputQueueSize); } else { // if "expect more input" switch is off - enqueue the element if (!inputQueue.offer(inputElement)) { // Should never happen, but findbugs complains throw new IllegalStateException("New element can't be added"); } inputQueueSizeUpdater.incrementAndGet(this); final int readyBuffersCount; // double check if "expect more input" flag is still off if ((readyBuffersCount = switchOffExpectInputIfQueueNotEmpty()) > 0) { // if not - pass the input queue content upstream passPayloadUpstream(null, readyBuffersCount); } } }
/** * The private method, which adds new InputElement to the input queue */ private void offer0(final InputElement inputElement) { if (switchOffExpectInput()) { // if "expect more input" switch is on - pass current input queue content upstream passPayloadUpstream(inputElement, inputQueueSize); } else { // if "expect more input" switch is off - enqueue the element if (!inputQueue.offer(inputElement)) { // Should never happen, but findbugs complains throw new IllegalStateException("New element can't be added"); } inputQueueSizeUpdater.incrementAndGet(this); final int readyBuffersCount; // double check if "expect more input" flag is still off if ((readyBuffersCount = switchOffExpectInputIfQueueNotEmpty()) > 0) { // if not - pass the input queue content upstream passPayloadUpstream(null, readyBuffersCount); } } }
/** * The private method, which adds new InputElement to the input queue */ private void offer0(final InputElement inputElement) { if (switchOffExpectInput()) { // if "expect more input" switch is on - pass current input queue content upstream passPayloadUpstream(inputElement, inputQueueSize); } else { // if "expect more input" switch is off - enqueue the element if (!inputQueue.offer(inputElement)) { // Should never happen, but findbugs complains throw new IllegalStateException("New element can't be added"); } inputQueueSizeUpdater.incrementAndGet(this); final int readyBuffersCount; // double check if "expect more input" flag is still off if ((readyBuffersCount = switchOffExpectInputIfQueueNotEmpty()) > 0) { // if not - pass the input queue content upstream passPayloadUpstream(null, readyBuffersCount); } } }
/** * The private method, which adds new InputElement to the input queue */ private void offer0(final InputElement inputElement) { if (switchOffExpectInput()) { // if "expect more input" switch is on - pass current input queue content upstream passPayloadUpstream(inputElement, inputQueueSize); } else { // if "expect more input" switch is off - enqueue the element if (!inputQueue.offer(inputElement)) { // Should never happen, but findbugs complains throw new IllegalStateException("New element can't be added"); } inputQueueSizeUpdater.incrementAndGet(this); final int readyBuffersCount; // double check if "expect more input" flag is still off if ((readyBuffersCount = switchOffExpectInputIfQueueNotEmpty()) > 0) { // if not - pass the input queue content upstream passPayloadUpstream(null, readyBuffersCount); } } }
/** * The private method, which adds new InputElement to the input queue */ private void offer0(final InputElement inputElement) { if (switchOffExpectInput()) { // if "expect more input" switch is on - pass current input queue content upstream passPayloadUpstream(inputElement, inputQueueSize); } else { // if "expect more input" switch is off - enqueue the element if (!inputQueue.offer(inputElement)) { // Should never happen, but findbugs complains throw new IllegalStateException("New element can't be added"); } inputQueueSizeUpdater.incrementAndGet(this); final int readyBuffersCount; // double check if "expect more input" flag is still off if ((readyBuffersCount = switchOffExpectInputIfQueueNotEmpty()) > 0) { // if not - pass the input queue content upstream passPayloadUpstream(null, readyBuffersCount); } } }
/** * The private method, which adds new InputElement to the input queue */ private void offer0(final InputElement inputElement) { if (switchOffExpectInput()) { // if "expect more input" switch is on - pass current input queue content upstream passPayloadUpstream(inputElement, inputQueueSize); } else { // if "expect more input" switch is off - enqueue the element if (!inputQueue.offer(inputElement)) { // Should never happen, but findbugs complains throw new IllegalStateException("New element can't be added"); } inputQueueSizeUpdater.incrementAndGet(this); final int readyBuffersCount; // double check if "expect more input" flag is still off if ((readyBuffersCount = switchOffExpectInputIfQueueNotEmpty()) > 0) { // if not - pass the input queue content upstream passPayloadUpstream(null, readyBuffersCount); } } }
/** * The private method, which adds new InputElement to the input queue */ private void offer0(final InputElement inputElement) { if (switchOffExpectInput()) { // if "expect more input" switch is on - pass current input queue content upstream passPayloadUpstream(inputElement, inputQueueSize); } else { // if "expect more input" switch is off - enqueue the element if (!inputQueue.offer(inputElement)) { // Should never happen, but findbugs complains throw new IllegalStateException("New element can't be added"); } inputQueueSizeUpdater.incrementAndGet(this); final int readyBuffersCount; // double check if "expect more input" flag is still off if ((readyBuffersCount = switchOffExpectInputIfQueueNotEmpty()) > 0) { // if not - pass the input queue content upstream passPayloadUpstream(null, readyBuffersCount); } } }
/** * The private method, which adds new InputElement to the input queue */ private void offer0(final InputElement inputElement) { if (switchOffExpectInput()) { // if "expect more input" switch is on - pass current input queue content upstream passPayloadUpstream(inputElement, inputQueueSize); } else { // if "expect more input" switch is off - enqueue the element if (!inputQueue.offer(inputElement)) { // Should never happen, but findbugs complains throw new IllegalStateException("New element can't be added"); } inputQueueSizeUpdater.incrementAndGet(this); final int readyBuffersCount; // double check if "expect more input" flag is still off if ((readyBuffersCount = switchOffExpectInputIfQueueNotEmpty()) > 0) { // if not - pass the input queue content upstream passPayloadUpstream(null, readyBuffersCount); } } }
if ((queueSize = switchOffExpectInputIfQueueNotEmpty()) > 0) { passPayloadUpstream(null, queueSize);
if ((queueSize = switchOffExpectInputIfQueueNotEmpty()) > 0) { passPayloadUpstream(null, queueSize);
if ((queueSize = switchOffExpectInputIfQueueNotEmpty()) > 0) { passPayloadUpstream(null, queueSize);
if ((queueSize = switchOffExpectInputIfQueueNotEmpty()) > 0) { passPayloadUpstream(null, queueSize);
if ((queueSize = switchOffExpectInputIfQueueNotEmpty()) > 0) { passPayloadUpstream(null, queueSize);
if ((queueSize = switchOffExpectInputIfQueueNotEmpty()) > 0) { passPayloadUpstream(null, queueSize);
if ((queueSize = switchOffExpectInputIfQueueNotEmpty()) > 0) { passPayloadUpstream(null, queueSize);
if ((queueSize = switchOffExpectInputIfQueueNotEmpty()) > 0) { passPayloadUpstream(null, queueSize);
if ((queueSize = switchOffExpectInputIfQueueNotEmpty()) > 0) { passPayloadUpstream(null, queueSize);