9939949959969979989991000100110021003
if (session == null) { // We are done with this queue. return; } SessionState state = getState(session); switch (state) { case OPENED: updateTrafficControl(session);
536537538539540541542543544545546
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
// 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);
987988989990991992993994995996997