Class IRequestLogger.SessionData

    • Constructor Detail

      • SessionData

        public SessionData​(String sessionId)
        Construct.
        Parameters:
        sessionId -
    • Method Detail

      • getLastActive

        public Date getLastActive()
        Returns:
        The last active date.
      • getStartDate

        public Date getStartDate()
        Returns:
        The start date of this session
      • getNumberOfRequests

        public long getNumberOfRequests()
        Returns:
        The number of request for this session
      • getSessionSize

        public long getSessionSize()
        Returns:
        Returns the session size.
      • getTotalTimeTaken

        public long getTotalTimeTaken()
        Returns:
        Returns the total time this session has spent in ms.
      • getSessionId

        public String getSessionId()
        Returns:
        The session id
      • addTimeTaken

        public void addTimeTaken​(long time)
        Adds time to the total server time.
        Parameters:
        time -
      • setSessionInfo

        public void setSessionInfo​(Object sessionInfo)
        Sets additional session info (e.g. logged in user).
        Parameters:
        sessionInfo -
      • setSessionSize

        public void setSessionSize​(long size)
        Sets the recorded session size.
        Parameters:
        size -