Package com.iizix.server.user
Class UserSessions
java.lang.Object
com.iizix.server.user.UserSessions
The UserSessions contains information about all sessions being run by the same user.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionGets all the application session gyro's of the user.getAppID()
Gets the App ID.getAppSessionGyro
(String sessionID) Gets an existing AppSessionGyro from a session ID.long
Gets the creation time in milliseconds.String[]
Gets the session ID's for this user.Gets the user identifier.boolean
hasSessionID
(String sessionID) Checks if a session ID has been started by this user.void
onDisposed
(AppSessionGyro appSessionGyro) Called when an application is disposed of.toString()
Returns a string representation of this user identifier and its values.
Method Details
getAppID
Gets the App ID.getUserIdentifier
Gets the user identifier.getCreationTime
public long getCreationTime()Gets the creation time in milliseconds.getSessionIDs
Gets the session ID's for this user.- Returns:
- An array of the session ID's.
hasSessionID
Checks if a session ID has been started by this user.- Parameters:
sessionID
- The session ID.- Returns:
- true if started, false otherwise.
getAppSessionGyro
Gets an existing AppSessionGyro from a session ID. This call is done from ActiveUserSessions in a synchronized block.- Parameters:
sessionID
- The session ID, "-1" for last.- Returns:
- The application session or null if not found.
getAllAppSessionGyros
Gets all the application session gyro's of the user.- Returns:
- The array of AppSessionGyro's.
onDisposed
Called when an application is disposed of.toString
Returns a string representation of this user identifier and its values.