@Override public int fill(Buffer buffer) throws IOException { int fill=super.fill(buffer); if (fill>0) notIdle(); return fill; }
@Override public int fill(Buffer buffer) throws IOException { int fill=super.fill(buffer); if (fill>0) notIdle(); return fill; }
@Override public int fill(Buffer buffer) throws IOException { int fill=super.fill(buffer); if (fill>0) notIdle(); return fill; }
@Override public int fill(Buffer buffer) throws IOException { int fill=super.fill(buffer); if (fill>0) notIdle(); return fill; }
@Override public int flush(Buffer buffer) throws IOException { int l = super.flush(buffer); // If there was something to write and it wasn't written, then we are not writable. if (l==0 && buffer!=null && buffer.hasContent()) { synchronized (this) { _writable=false; if (_state<STATE_DISPATCHED) updateKey(); } } else if (l>0) { _writable=true; notIdle(); } return l; }
@Override public int flush(Buffer buffer) throws IOException { int l = super.flush(buffer); // If there was something to write and it wasn't written, then we are not writable. if (l==0 && buffer!=null && buffer.hasContent()) { synchronized (this) { _writable=false; if (_state<STATE_DISPATCHED) updateKey(); } } else if (l>0) { _writable=true; notIdle(); } return l; }
@Override public int flush(Buffer buffer) throws IOException { int l = super.flush(buffer); // If there was something to write and it wasn't written, then we are not writable. if (l==0 && buffer!=null && buffer.hasContent()) { synchronized (this) { _writable=false; if (_state<STATE_DISPATCHED) updateKey(); } } else if (l>0) { _writable=true; notIdle(); } return l; }
@Override public int flush(Buffer buffer) throws IOException { int l = super.flush(buffer); // If there was something to write and it wasn't written, then we are not writable. if (l==0 && buffer!=null && buffer.hasContent()) { synchronized (this) { _writable=false; if (_state<STATE_DISPATCHED) updateKey(); } } else if (l>0) { _writable=true; notIdle(); } return l; }
@Override public int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException { int l = super.flush(header, buffer, trailer); // If there was something to write and it wasn't written, then we are not writable. if (l==0 && ( header!=null && header.hasContent() || buffer!=null && buffer.hasContent() || trailer!=null && trailer.hasContent())) { synchronized (this) { _writable=false; if (_state<STATE_DISPATCHED) updateKey(); } } else if (l>0) { _writable=true; notIdle(); } return l; }
@Override public int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException { int l = super.flush(header, buffer, trailer); // If there was something to write and it wasn't written, then we are not writable. if (l==0 && ( header!=null && header.hasContent() || buffer!=null && buffer.hasContent() || trailer!=null && trailer.hasContent())) { synchronized (this) { _writable=false; if (_state<STATE_DISPATCHED) updateKey(); } } else if (l>0) { _writable=true; notIdle(); } return l; }
@Override public int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException { int l = super.flush(header, buffer, trailer); // If there was something to write and it wasn't written, then we are not writable. if (l==0 && ( header!=null && header.hasContent() || buffer!=null && buffer.hasContent() || trailer!=null && trailer.hasContent())) { synchronized (this) { _writable=false; if (_state<STATE_DISPATCHED) updateKey(); } } else if (l>0) { _writable=true; notIdle(); } return l; }
@Override public int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException { int l = super.flush(header, buffer, trailer); // If there was something to write and it wasn't written, then we are not writable. if (l==0 && ( header!=null && header.hasContent() || buffer!=null && buffer.hasContent() || trailer!=null && trailer.hasContent())) { synchronized (this) { _writable=false; if (_state<STATE_DISPATCHED) updateKey(); } } else if (l>0) { _writable=true; notIdle(); } return l; }