protected void save() throws Exception { try { updateSession(_data); } finally { _dirty = false; } }
protected void save() throws Exception { try { updateSession(_data); } finally { _dirty = false; } }
protected void save() throws Exception { synchronized (this) { try { updateSession(this); } finally { _dirty = false; } } }
protected void save() throws Exception { synchronized (this) { try { updateSession(this); } finally { _dirty = false; } } }
protected void save (boolean reactivate) throws Exception { synchronized (this) { if (_dirty) { //The session attributes have changed, write to the db, ensuring //http passivation/activation listeners called willPassivate(); updateSession(this); if (reactivate) didActivate(); } } }
protected void save (boolean reactivate) throws Exception { synchronized (this) { if (_dirty) { //The session attributes have changed, write to the db, ensuring //http passivation/activation listeners called willPassivate(); updateSession(this); if (reactivate) didActivate(); } } }
/** * * @see org.eclipse.jetty.server.SessionManager#renewSessionId(java.lang.String, java.lang.String, java.lang.String, java.lang.String) */ public void renewSessionId (String oldClusterId, String oldNodeId, String newClusterId, String newNodeId) { Session session = null; try { session = (Session)_sessions.remove(oldClusterId); if (session != null) { synchronized (session) { session.setClusterId(newClusterId); //update ids session.setNodeId(newNodeId); _sessions.put(newClusterId, session); //put it into list in memory updateSession(session); //update database } } } catch (Exception e) { LOG.warn(e); } super.renewSessionId(oldClusterId, oldNodeId, newClusterId, newNodeId); }
/** * * @see org.eclipse.jetty.server.SessionManager#renewSessionId(java.lang.String, java.lang.String, java.lang.String, java.lang.String) */ public void renewSessionId (String oldClusterId, String oldNodeId, String newClusterId, String newNodeId) { Session session = null; try { session = (Session)_sessions.remove(oldClusterId); if (session != null) { synchronized (session) { session.setClusterId(newClusterId); //update ids session.setNodeId(newNodeId); _sessions.put(newClusterId, session); //put it into list in memory updateSession(session); //update database } } } catch (Exception e) { LOG.warn(e); } super.renewSessionId(oldClusterId, oldNodeId, newClusterId, newNodeId); }
updateSession(_data); didActivate();
updateSession(_data); didActivate();
updateSession(this); didActivate();
updateSession(this); didActivate();
updateSession(this); didActivate();
updateSession(this); didActivate();
updateSession(this); didActivate();