7980818283848586878889
buf.setAutoExpand(true); buf.putObject(message); int objectSize = buf.position() - 4; if (objectSize > maxObjectSize) { buf.release(); throw new IllegalArgumentException( "The encoded object is too big: " + objectSize + " (> " + maxObjectSize + ')'); }
8485868788899091929394
buf.putObject( message ); int objectSize = buf.position() - 4; if( objectSize > maxObjectSize ) { buf.release(); throw new IllegalArgumentException( "The encoded object is too big: " + objectSize + " (> " + maxObjectSize + ')' ); } buf.flip(); out.write( buf );
183184185186187188189190191192193
{ disposeDecoder( session ); } // Release the read buffer. in.release(); decoderOut.flush(); } }
103104105106107108109110111112113
IoSession session = ( IoSession ) session0; if( type == EventType.READ ) { ByteBuffer buf = ( ByteBuffer ) data; nextFilter.dataRead( session, buf ); buf.release(); } else if( type == EventType.WRITTEN ) { nextFilter.dataWritten( session, data ); }
382383384385386387388389390391392
writeMarkerQueue.pop(); } try { buf.release(); } catch( IllegalStateException e ) { session.getManagerFilterChain().exceptionCaught( session, e ); }
6061626364656667686970
{ break; } newBuf.put( buf ); buf.release(); } // Push the new buffer finally. newBuf.flip(); bufferQueue.push(newBuf);
427428429430431432433434435436437
447448449450451452453454455456457
while( ( buf = (ByteBuffer) writeBufferQueue.pop() ) != null ) { try { buf.release(); } catch( IllegalStateException e ) { session.getManagerFilterChain().exceptionCaught( session, e ); }
489490491492493494495496497498499
writeBufferQueue.pop(); writeMarkerQueue.pop(); } try { buf.release(); } catch( IllegalStateException e ) { session.getManagerFilterChain().exceptionCaught( session, e ); }
241242243244245246247248249250251
if (e instanceof IOException) scheduleRemove(session); session.getFilterChain().fireExceptionCaught(session, e); } finally { if (buf != null) buf.release(); } } private void notifyIdleness() { // process idle sessions