Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338627

Summary: HashSessionManager.getIdleSavePeriod returns milliseconds instead of seconds
Product: [RT] Jetty Reporter: Roger Armstrong <roger>
Component: serverAssignee: Michael Gorovoy <mgorovoy>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox, mgorovoy
Version: unspecified   
Target Milestone: 7.2.x   
Hardware: All   
OS: All   
Whiteboard:

Description Roger Armstrong CLA 2011-03-02 03:27:27 EST
Build Identifier: 7.3.1-SNAPSHOT

    /* ------------------------------------------------------------ */
    /**
     * @return seconds Idle period after which a session is saved 
     */
    public int getIdleSavePeriod()
    {
      if (_idleSavePeriodMs <= 0)
        return 0;

      return _idleSavePeriodMs;
    }


   /* ------------------------------------------------------------ */
    /**
     * Configures the period in seconds after which a session is deemed idle and saved 
     * to save on session memory.  
     * 
     * The session is persisted, the values attribute map is cleared and the session set to idled. 
     * 
     * @param seconds Idle period after which a session is saved 
     */
    public void setIdleSavePeriod(int seconds)
    {
      _idleSavePeriodMs = seconds * 1000;
    }


Reproducible: Always
Comment 1 Michael Gorovoy CLA 2011-03-15 02:03:52 EDT
Committed r2894.