Module org.apache.wicket.core
Package org.apache.wicket.protocol.http
Class IRequestLogger.SessionData
java.lang.Object
org.apache.wicket.protocol.http.IRequestLogger.SessionData
- All Implemented Interfaces:
Serializable
,Comparable<IRequestLogger.SessionData>
,IClusterable
- Enclosing interface:
- IRequestLogger
public static class IRequestLogger.SessionData
extends Object
implements IClusterable, Comparable<IRequestLogger.SessionData>
This class hold the information one request of a session has.
- Author:
- jcompagner
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTimeTaken
(long time) Addstime
to the total server time.int
long
long
long
void
setSessionInfo
(Object sessionInfo) Sets additional session info (e.g.void
setSessionSize
(long size) Sets the recorded session size.
-
Constructor Details
-
SessionData
Construct.- Parameters:
sessionId
-
-
-
Method Details
-
getLastActive
- Returns:
- The last active date.
-
getStartDate
- Returns:
- The start date of this session
-
getNumberOfRequests
- Returns:
- The number of request for this session
-
getSessionSize
- Returns:
- Returns the session size.
-
getTotalTimeTaken
- Returns:
- Returns the total time this session has spent in ms.
-
getSessionInfo
- Returns:
- The session info object given by the
IRequestLogger.ISessionLogInfo.getSessionInfo()
session method.
-
getSessionId
- Returns:
- The session id
-
addTimeTaken
Addstime
to the total server time.- Parameters:
time
-
-
setSessionInfo
Sets additional session info (e.g. logged in user).- Parameters:
sessionInfo
-
-
setSessionSize
Sets the recorded session size.- Parameters:
size
-
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IRequestLogger.SessionData>
-