@Override public void terminate(Termination termination) { synchronized (this) { if (isClosed) { return; } isClosed = true; stream.onInputClosed(); } termination.doTask(); }
@Override public void terminate(Termination termination) { synchronized (this) { if (isClosed) { return; } isClosed = true; stream.onInputClosed(); } termination.doTask(); }
@Override public void terminate(Termination termination) { synchronized (this) { if (isClosed) { return; } isClosed = true; stream.onInputClosed(); } termination.doTask(); }
@Override public void terminate(Termination termination) { synchronized (this) { if (isClosed) { return; } isClosed = true; stream.onInputClosed(); } termination.doTask(); }
@Override public void terminate(Termination termination) { synchronized (this) { if (isClosed) { return; } isClosed = true; stream.onInputClosed(); } termination.doTask(); }
@Override public void terminate(Termination termination) { synchronized (this) { if (isClosed) { return; } isClosed = true; stream.onInputClosed(); } termination.doTask(); }
@Override public void terminate(Termination termination) { synchronized (this) { if (isClosed) { return; } isClosed = true; stream.onInputClosed(); } termination.doTask(); }
@Override public void terminate(Termination termination) { synchronized (this) { if (isClosed) { return; } isClosed = true; stream.onInputClosed(); } termination.doTask(); }
@Override public void terminate(Termination termination) { synchronized (this) { if (isClosed) { return; } isClosed = true; stream.onInputClosed(); } termination.doTask(); }
/** * Checks if the passed InputElement is input buffer EOF element. * @param inputElement the {@link InputElement} to check EOF status against. */ private void checkEOF(final InputElement inputElement) { // first of all it has to be the last element if (inputElement.isLast) { final Termination termination = !inputElement.isService ? IN_FIN_TERMINATION : (Termination) inputElement.content; if (closeFlagUpdater.compareAndSet(this, null, termination)) { // Let termination run some logic if needed. termination.doTask(); // NOTIFY Http2Stream stream.onInputClosed(); } } }
/** * Checks if the passed InputElement is input buffer EOF element. * @param inputElement the {@link InputElement} to check EOF status against. */ private void checkEOF(final InputElement inputElement) { // first of all it has to be the last element if (inputElement.isLast) { final Termination termination = !inputElement.isService ? IN_FIN_TERMINATION : (Termination) inputElement.content; if (closeFlagUpdater.compareAndSet(this, null, termination)) { // Let termination run some logic if needed. termination.doTask(); // NOTIFY Http2Stream stream.onInputClosed(); } } }
/** * Checks if the passed InputElement is input buffer EOF element. * @param inputElement the {@link InputElement} to check EOF status against. */ private void checkEOF(final InputElement inputElement) { // first of all it has to be the last element if (inputElement.isLast) { final Termination termination = !inputElement.isService ? IN_FIN_TERMINATION : (Termination) inputElement.content; if (closeFlagUpdater.compareAndSet(this, null, termination)) { // Let termination run some logic if needed. termination.doTask(); // NOTIFY Http2Stream stream.onInputClosed(); } } }
/** * Checks if the passed InputElement is input buffer EOF element. * @param inputElement the {@link InputElement} to check EOF status against. */ private void checkEOF(final InputElement inputElement) { // first of all it has to be the last element if (inputElement.isLast) { final Termination termination = !inputElement.isService ? IN_FIN_TERMINATION : (Termination) inputElement.content; if (closeFlagUpdater.compareAndSet(this, null, termination)) { // Let termination run some logic if needed. termination.doTask(); // NOTIFY Http2Stream stream.onInputClosed(); } } }
/** * Checks if the passed InputElement is input buffer EOF element. * @param inputElement the {@link InputElement} to check EOF status against. */ private void checkEOF(final InputElement inputElement) { // first of all it has to be the last element if (inputElement.isLast) { final Termination termination = !inputElement.isService ? IN_FIN_TERMINATION : (Termination) inputElement.content; if (closeFlagUpdater.compareAndSet(this, null, termination)) { // Let termination run some logic if needed. termination.doTask(); // NOTIFY Http2Stream stream.onInputClosed(); } } }
/** * Checks if the passed InputElement is input buffer EOF element. * @param inputElement the {@link InputElement} to check EOF status against. */ private void checkEOF(final InputElement inputElement) { // first of all it has to be the last element if (inputElement.isLast) { final Termination termination = !inputElement.isService ? IN_FIN_TERMINATION : (Termination) inputElement.content; if (closeFlagUpdater.compareAndSet(this, null, termination)) { // Let termination run some logic if needed. termination.doTask(); // NOTIFY Http2Stream stream.onInputClosed(); } } }
/** * Checks if the passed InputElement is input buffer EOF element. * @param inputElement the {@link InputElement} to check EOF status against. */ private void checkEOF(final InputElement inputElement) { // first of all it has to be the last element if (inputElement.isLast) { final Termination termination = !inputElement.isService ? IN_FIN_TERMINATION : (Termination) inputElement.content; if (closeFlagUpdater.compareAndSet(this, null, termination)) { // Let termination run some logic if needed. termination.doTask(); // NOTIFY Http2Stream stream.onInputClosed(); } } }
/** * Checks if the passed InputElement is input buffer EOF element. * @param inputElement the {@link InputElement} to check EOF status against. */ private void checkEOF(final InputElement inputElement) { // first of all it has to be the last element if (inputElement.isLast) { final Termination termination = !inputElement.isService ? IN_FIN_TERMINATION : (Termination) inputElement.content; if (closeFlagUpdater.compareAndSet(this, null, termination)) { // Let termination run some logic if needed. termination.doTask(); // NOTIFY Http2Stream stream.onInputClosed(); } } }
/** * Checks if the passed InputElement is input buffer EOF element. * @param inputElement the {@link InputElement} to check EOF status against. */ private void checkEOF(final InputElement inputElement) { // first of all it has to be the last element if (inputElement.isLast) { final Termination termination = !inputElement.isService ? IN_FIN_TERMINATION : (Termination) inputElement.content; if (closeFlagUpdater.compareAndSet(this, null, termination)) { // Let termination run some logic if needed. termination.doTask(); // NOTIFY Http2Stream stream.onInputClosed(); } } }
stream.onInputClosed();