public void shutdownReads() throws IOException { final StreamSourceChannel old = channel; if (old != null) { channel = null; old.shutdownReads(); } }
@Override public void shutdownReads() throws IOException { channel.shutdownReads(); }
public void shutdownReads() throws IOException { source.shutdownReads(); }
public void terminateReads() throws IOException { channel.shutdownReads(); }
public void shutdownReads() throws IOException { if (isFinished()) { return; } delegate.shutdownReads(); }
public void shutdownReads() throws IOException { buffer.free(); next.shutdownReads(); }
public void shutdownReads() throws IOException { int oldVal, newVal; do { oldVal = state; if (allAreSet(oldVal, FLAG_CLOSED)) { return; } newVal = oldVal | FLAG_CLOSED; } while (! stateUpdater.compareAndSet(this, oldVal, newVal)); delegate.shutdownReads(); invokeChannelListener(this, closeListener); }
/** {@inheritDoc} */ public void close() throws IOException { enter(); try { channel.shutdownReads(); } finally { exit(true); } } }
/** * Close the stream. Shuts down the channel's read side. * * @throws IOException if an I/O error occurs */ public void close() throws IOException { enter(); try { buffer.clear().flip(); channel.shutdownReads(); } finally { exit(true); } } }
public void shutdownReads() throws IOException { final int state = this.state; if (allAreClear(state, FLAG_CLOSED)) try { this.state = state | FLAG_CLOSED | FLAG_FINISHED; if (allAreSet(state, FLAG_PASS_CLOSE)) { delegate.shutdownReads(); } } finally { if (allAreClear(state, FLAG_FINISHED)) callFinish(); callClosed(); } }
@Override public void close() throws IOException { if (anyAreSet(state, FLAG_CLOSED)) { return; } state |= FLAG_CLOSED; try { while (allAreClear(state, FLAG_FINISHED)) { readIntoBuffer(); if (pooled != null) { pooled.close(); pooled = null; } } } finally { if (pooled != null) { pooled.close(); pooled = null; } channel.shutdownReads(); state |= FLAG_FINISHED; } } }
channel.shutdownReads(); final StreamSinkChannel responseChannel = connection.getChannel().getSinkChannel(); responseChannel.shutdownWrites();
public void shutdownReads() throws IOException { final StreamSourceChannel old = channel; if (old != null) { channel = null; old.shutdownReads(); } }
@Override public void shutdownReads() throws IOException { channel.shutdownReads(); }
public void shutdownReads() throws IOException { if (isFinished()) { return; } delegate.shutdownReads(); }
public void shutdownReads() throws IOException { if (isFinished()) { return; } delegate.shutdownReads(); }
public void shutdownReads() throws IOException { int oldVal, newVal; do { oldVal = state; if (allAreSet(oldVal, FLAG_CLOSED)) { return; } newVal = oldVal | FLAG_CLOSED; } while (! stateUpdater.compareAndSet(this, oldVal, newVal)); delegate.shutdownReads(); invokeChannelListener(this, closeListener); }
/** {@inheritDoc} */ public void close() throws IOException { enter(); try { channel.shutdownReads(); } finally { exit(true); } } }
@Override public void close() throws IOException { if (anyAreSet(state, FLAG_CLOSED)) { return; } state |= FLAG_FINISHED | FLAG_CLOSED; if (pooled != null) { pooled.close(); pooled = null; } channel.suspendReads(); channel.shutdownReads(); }
public void shutdownReads() throws IOException { final int state = this.state; if (allAreClear(state, FLAG_CLOSED)) try { this.state = state | FLAG_CLOSED | FLAG_FINISHED; if (allAreSet(state, FLAG_PASS_CLOSE)) { delegate.shutdownReads(); } } finally { if (allAreClear(state, FLAG_FINISHED)) callFinish(); callClosed(); } }