public interface SessionId
Session
identifier, allocated by the server.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks identifier against another object for equality.
|
int |
hashCode()
Returns hash code of session identifier.
|
String |
toString()
Returns a string representation of the session identifier.
|
int hashCode()
hashCode
in class Object
Object.hashCode()
boolean equals(Object obj)
equals
in class Object
obj
- the object to checkobj
is of the same type and identifies the same
sessionObject.equals(Object)
String toString()
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
toString
in class Object
Object.toString()
Copyright © 2024 DiffusionData Ltd. All Rights Reserved.