Class UserSessions


  • public class UserSessions
    extends java.lang.Object
    The UserSessions contains information about all sessions being run by the same user.
    Author:
    Christopher Mindus
    • Method Detail

      • getAppID

        public java.lang.String getAppID()
        Gets the App ID.
      • getUserIdentifier

        public UserIdentifier getUserIdentifier()
        Gets the user identifier.
      • getCreationTime

        public long getCreationTime()
        Gets the creation time in milliseconds.
      • getSessionIDs

        public java.lang.String[] getSessionIDs()
        Gets the session ID's for this user.
        Returns:
        An array of the session ID's.
      • hasSessionID

        public boolean hasSessionID​(java.lang.String sessionID)
        Checks if a session ID has been started by this user.
        Parameters:
        sessionID - The session ID.
        Returns:
        true if started, false otherwise.
      • getAppSessionGyro

        public AppSessionGyro getAppSessionGyro​(java.lang.String sessionID)
        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

        public AppSessionGyro[] getAllAppSessionGyros()
        Gets all the application session gyro's of the user.
        Returns:
        The array of AppSessionGyro's.
      • onDisposed

        public void onDisposed​(AppSessionGyro appSessionGyro)
        Called when an application is disposed of.
      • toString

        public java.lang.String toString()
        Returns a string representation of this user identifier and its values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation.