static void unregisterSessions(List<SessionID> sessionIds) { for (final SessionID sessionId : sessionIds) { final Session session = sessions.remove(sessionId); if (session != null) { try { session.close(); } catch (final IOException e) { log.error("Failed to close session resources", e); } } } }
static void unregisterSession(SessionID sessionId, boolean doClose) { final Session session = sessions.get(sessionId); if (session != null) { try { if (doClose) { session.close(); } } catch (final IOException e) { LOG.error("Failed to close session resources", e); } finally { sessions.remove(sessionId); } } }
static void unregisterSession(SessionID sessionId, boolean doClose) { final Session session = sessions.get(sessionId); if (session != null) { try { if (doClose) { session.close(); } } catch (final IOException e) { LOG.error("Failed to close session resources", e); } finally { sessions.remove(sessionId); } } }