473474475476477478479480481482483
new AsyncFlush().iterate(); return; case PENDING: case UNREADY: throw new WritePendingException(); case CLOSED: throw new EofException("Closed"); } break;
328329330331332333334335336337338
{ if (DEBUG) LOG.debug("write: {} {}", this, BufferUtil.toDetailString(buffers)); if (!updateState(__IDLE,__WRITING)) throw new WritePendingException(); try { boolean flushed=_endPoint.flush(buffers); if (DEBUG)
180181182183184185186187188189190
* is empty else <code>false</code> (as a future) */ @Override public Future<Boolean> flush() { if (writePending) { throw new WritePendingException(); } else { writePending = true; } return new FutureFlush(sc.write(netOutBuffer)); }
706707708709710711712713714715716
* @return The number of bytes written, possibly zero */ @Override public Future<Integer> write(ByteBuffer src) { if (writePending) { throw new WritePendingException(); } else { writePending = true; } return new FutureWrite(src); }
808809810811812813814815816817818
if (closing || closed) { handler.failed(new IOException(sm.getString("channel.nio.ssl.closing")), attachment); return; } if (writePending) { throw new WritePendingException(); } else { writePending = true; } try {
945946947948949950951952953954955
if (closing || closed) { handler.failed(new IOException(sm.getString("channel.nio.ssl.closing")), attachment); return; } if (writePending) { throw new WritePendingException(); } else { writePending = true; } try { GatherState<A> state = new GatherState<>(srcs, offset, length,
140141142143144145146147148149150
{ case CLOSED: break loop; case UNREADY: throw new WritePendingException(); // TODO ? default: if (_state.compareAndSet(state,OutputState.CLOSED)) { try
173174175176177178179180181182183
230231232233234235236237238239240
new AsyncFlush().iterate(); return; case PENDING: case UNREADY: throw new WritePendingException(); case CLOSED: return; } break;
290291292293294295296297298299300
new AsyncWrite(b,off,len,complete).iterate(); return; case PENDING: case UNREADY: throw new WritePendingException(); case CLOSED: throw new EofException("Closed"); } break;