private void process ( T session ) { // Process Reads if ( isReadable ( session ) && ! session . isReadSuspended ( ) ) { read ( session ) ; } // Process writes if ( isWritable ( session ) && ! session . isWriteSuspended ( ) ) { scheduleFlush ( session ) ; } }
Deal with session ready for the read or write operations or both .