public NoSqlSessionData(String id, String cpath, String vhost, long created, long accessed, long lastAccessed, long maxInactiveMs) { super(id, cpath, vhost, created, accessed, lastAccessed, maxInactiveMs); setVersion (new Long(0)); }
sets.put(__MAX_IDLE, data.getMaxInactiveMs()); sets.put(__EXPIRY, data.getExpiry()); ((NoSqlSessionData)data).setVersion(version); sets.put(getContextSubfield(__LASTNODE), data.getLastNode()); version = new Long(((Number)version).longValue() + 1); ((NoSqlSessionData)data).setVersion(version); update.put("$inc",_version_1);
data.setVersion(version); data.setExpiry(expiry); data.setContextPath(_context.getCanonicalContextPath());