Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338627 - HashSessionManager.getIdleSavePeriod returns milliseconds instead of seconds
Summary: HashSessionManager.getIdleSavePeriod returns milliseconds instead of seconds
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.2.x   Edit
Assignee: Michael Gorovoy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 03:27 EST by Roger Armstrong CLA
Modified: 2011-03-15 02:03 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.