Class UserSessions

java.lang.Object
com.iizix.server.user.UserSessions

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

    • getAppID

      public 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 String[] getSessionIDs()
      Gets the session ID's for this user.
      Returns:
      An array of the session ID's.
    • hasSessionID

      public boolean hasSessionID(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(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 String toString()
      Returns a string representation of this user identifier and its values.
      Overrides:
      toString in class Object
      Returns:
      a string representation.