@ThreadSafe public class SessionInfo extends Object
Constructor and Description |
---|
SessionInfo(long sessionId,
int sessionTimeoutMs)
Creates a new instance of
SessionInfo . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getSessionId() |
int |
hashCode() |
void |
heartbeat()
Performs a session heartbeat.
|
boolean |
timeout()
Checks whether the session has timed out.
|
String |
toString() |
public SessionInfo(long sessionId, int sessionTimeoutMs)
SessionInfo
.sessionId
- the session idsessionTimeoutMs
- the session timeout in millisecondsCopyright © 2023. All Rights Reserved.