551552553554555556557558559560561
private int removeSessions() { int removedSessions = 0; for (T 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
767768769770771772773774775776777
// 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);
9939949959969979989991000100110021003
if (session == null) { // We are done with this queue. return; } SessionState state = getState(session); switch (state) { case OPENED: updateTrafficControl(session);
488489490491492493494495496497498
if (session == null) { // No session to remove. Get out. return removedSessions; } SessionState state = getState(session); switch (state) { case OPENED: if (removeNow(session)) { removedSessions++;
682683684685686687688689690691692
T session = flushingSessions.poll(); // the same one with firstSession for (;;) { session.setScheduledForFlush(false); SessionState state = getState(session); switch (state) { case OPENED: try { boolean flushedAll = flushNow(session, currentTime);
895896897898899900901902903904905
if (session == null) { return; } SessionState state = getState(session); switch (state) { case OPENED: updateTrafficControl(session); break;
528529530531532533534535536537538
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
766767768769770771772773774775776
992993994995996997998999100010011002
553554555556557558559560561562563