Package discord4j.gateway
Class SessionInfo
java.lang.Object
discord4j.gateway.SessionInfo
A container to represent the current state of a Gateway session.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SessionInfobooleangetId()Return the identifier of the session represented by thisSessionInfo.intReturn the sequence number of the session represented by thisSessionInfo.inthashCode()toString()
-
Method Details
-
create
-
getId
Return the identifier of the session represented by thisSessionInfo.- Returns:
- the session identifier
-
getSequence
public int getSequence()Return the sequence number of the session represented by thisSessionInfo.- Returns:
- the session sequence
-
equals
-
hashCode
public int hashCode() -
toString
-