768769770771772773774775776777778
// Reset the Schedule for flush flag for this session, // as we are flushing it now session.unscheduledForFlush(); SessionState state = getState(session); switch (state) { case OPENED: try { boolean flushedAll = flushNow(session, currentTime);
99799899910001001100210031004100510061007
if (session == null) { // We are done with this queue. return; } SessionState state = getState(session); switch (state) { case OPENED: updateTrafficControl(session);
551552553554555556557558559560561
private int removeSessions() { int removedSessions = 0; for (S session = removingSessions.poll(); session != null; session = removingSessions.poll()) { SessionState state = getState(session); // Now deal with the removal accordingly to the session's state switch (state) { case OPENED: // Try to remove this session
789790791792793794795796797798799
10151016101710181019102010211022102310241025
549550551552553554555556557558559
779780781782783784785786787788789
10001001100210031004100510061007100810091010
529530531532533534535536537538539
767768769770771772773774775776777