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 SummaryModifier 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.- longGets 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- getAppIDGets the App ID.
- getUserIdentifierGets the user identifier.
- getCreationTimepublic long getCreationTime()Gets the creation time in milliseconds.
- getSessionIDsGets the session ID's for this user.- Returns:
- An array of the session ID's.
 
- hasSessionIDChecks if a session ID has been started by this user.- Parameters:
- sessionID- The session ID.
- Returns:
- true if started, false otherwise.
 
- getAppSessionGyroGets 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.
 
- getAllAppSessionGyrosGets all the application session gyro's of the user.- Returns:
- The array of AppSessionGyro's.
 
- onDisposedCalled when an application is disposed of.
- toStringReturns a string representation of this user identifier and its values.