/** * Return the <code>isValid</code> flag for this session. */ @Override public boolean isValid() { if (!this.isValid) { return false; } if (this.expiring) { return true; } if (ACTIVITY_CHECK && accessCount.get() > 0) { return true; } if (maxInactiveInterval > 0) { int timeIdle = (int) (getIdleTimeInternal() / 1000L); if (timeIdle >= maxInactiveInterval) { expire(true); } } return this.isValid; }
/** * Return the idle time (in milliseconds) from last client access time. */ @Override public long getIdleTime() { if (!isValidInternal()) { throw new IllegalStateException (sm.getString("standardSession.getIdleTime.ise")); } return getIdleTimeInternal(); }
/** * Return the <code>isValid</code> flag for this session. */ @Override public boolean isValid() { if (!this.isValid) { return false; } if (this.expiring) { return true; } if (ACTIVITY_CHECK && accessCount.get() > 0) { return true; } if (maxInactiveInterval > 0) { int timeIdle = (int) (getIdleTimeInternal() / 1000L); if (timeIdle >= maxInactiveInterval) { expire(true); } } return this.isValid; }
/** * Return the idle time (in milliseconds) from last client access time. */ @Override public long getIdleTime() { if (!isValidInternal()) { throw new IllegalStateException (sm.getString("standardSession.getIdleTime.ise")); } return getIdleTimeInternal(); }
if (!session.isValid()) continue; int timeIdle = (int) (session.getIdleTimeInternal() / 1000L); if (timeIdle >= maxIdleSwap && timeIdle >= minIdleSwap) { if (session.accessCount != null &&
if (!session.isValid()) continue; int timeIdle = (int) (session.getIdleTimeInternal() / 1000L); if (timeIdle >= maxIdleSwap && timeIdle >= minIdleSwap) { if (session.accessCount != null &&
lastAccessedTime == persistedLastAccessedTime.longValue()) continue; int timeIdle = (int) (session.getIdleTimeInternal() / 1000L); if (timeIdle >= maxIdleBackup) { if (log.isDebugEnabled())
lastAccessedTime == persistedLastAccessedTime.longValue()) continue; int timeIdle = (int) (session.getIdleTimeInternal() / 1000L); if (timeIdle >= maxIdleBackup) { if (log.isDebugEnabled())
StandardSession session = (StandardSession) sessions[i]; synchronized (session) { int timeIdle = (int) (session.getIdleTimeInternal() / 1000L); if (timeIdle >= minIdleSwap) { if (session.accessCount != null &&
StandardSession session = (StandardSession) sessions[i]; synchronized (session) { int timeIdle = (int) (session.getIdleTimeInternal() / 1000L); if (timeIdle >= minIdleSwap) { if (session.accessCount != null &&