Package net.dv8tion.jda.api.utils
Interface SessionController.SessionConnectNode
- 
- Enclosing interface:
- SessionController
 
 public static interface SessionController.SessionConnectNodeRepresents a WebSocketClient request to start a session.
 Not implemented by library user.Note: None of the provided session nodes can be resumed, the resume timeframe has already passed 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description JDAgetJDA()TheJDAinstance for this requestJDA.ShardInfogetShardInfo()TheShardInfofor this request.booleanisReconnect()Whether this node is reconnecting.voidrun(boolean isLast)When called, establishes the session.
 
- 
- 
- 
Method Detail- 
isReconnectboolean isReconnect() Whether this node is reconnecting. Can be used to setup a priority based system.- Returns:
- True, if this session is reconnecting
 
 - 
getShardInfo@Nonnull JDA.ShardInfo getShardInfo() TheShardInfofor this request.
 Can be used for a priority system.- Returns:
- The ShardInfo
 
 - 
runvoid run(boolean isLast) throws java.lang.InterruptedException When called, establishes the session.
 This will return once the required payload to start the session has been delivered.- Parameters:
- isLast- True, if this is the last node in a queue worker. When true this will not wait for the payload to be delivered.
- Throws:
- java.lang.InterruptedException- If the calling thread is interrupted
 
 
- 
 
-