Interface SessionId


public interface SessionId
A unique Session identifier, allocated by the server.
Since:
5.0
Author:
DiffusionData Limited
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks identifier against another object for equality.
    int
    Returns hash code of session identifier.
    Returns a string representation of the session identifier.
  • Method Details

    • hashCode

      int hashCode()
      Returns hash code of session identifier.
      Overrides:
      hashCode in class Object
      Returns:
      hash code
      See Also:
    • equals

      boolean equals(Object obj)
      Checks identifier against another object for equality.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to check
      Returns:
      true if obj is of the same type and identifies the same session
      See Also:
    • toString

      String toString()
      Returns a string representation of the session identifier.

      This string is useful where the session identity needs to be logged, stored in a database, or passed indirectly in an application message. Using Diffusion.sessionIdFromString(java.lang.String), the string can later be converted back to a SessionId that can be used to interact with the server hosting the session.

      The format of the string is subject to change between product releases. The current format is a 33-character string consisting of a pair of 16-digit, lower case hexadecimal numbers, separated by a '-'. For example:

       2d5f8e2fab472dce-0000000100000007
       
      Overrides:
      toString in class Object
      Returns:
      string representation of session identifier
      See Also: