private void cleanupServiceGroupContexts() { long currentTime = System.currentTimeMillis(); for (Iterator<String> it = this.sessionmap.keySet().iterator(); it.hasNext();) { String cookieID = (String) it.next(); SessionContext sessionContext = (SessionContext) this.sessionmap.get(cookieID); if ((currentTime - sessionContext.getLastTouchedTime()) > sessionContext.sessionContextTimeoutInterval) { it.remove(); Iterator<ServiceGroupContext> serviceGroupContext = sessionContext.getServiceGroupContext(); if (serviceGroupContext != null) { while (serviceGroupContext.hasNext()) { ServiceGroupContext groupContext = (ServiceGroupContext) serviceGroupContext.next(); cleanupServiceContexts(groupContext); } } } } }
private void cleanupServiceGroupContexts() { long currentTime = System.currentTimeMillis(); for (Iterator<String> it = this.sessionmap.keySet().iterator(); it.hasNext();) { String cookieID = (String) it.next(); SessionContext sessionContext = (SessionContext) this.sessionmap.get(cookieID); if ((currentTime - sessionContext.getLastTouchedTime()) > sessionContext.sessionContextTimeoutInterval) { it.remove(); Iterator<ServiceGroupContext> serviceGroupContext = sessionContext.getServiceGroupContext(); if (serviceGroupContext != null) { while (serviceGroupContext.hasNext()) { ServiceGroupContext groupContext = (ServiceGroupContext) serviceGroupContext.next(); cleanupServiceContexts(groupContext); } } } } }
out.writeLong(getLastTouchedTime());
out.writeLong(getLastTouchedTime());