Package net.dv8tion.jda.api.utils
Class SessionController.ShardedGateway
- java.lang.Object
-
- net.dv8tion.jda.api.utils.SessionController.ShardedGateway
-
- Enclosing interface:
- SessionController
public static class SessionController.ShardedGateway extends Object
POJO containing the gateway endpoint and recommended shard total for a shard manager.
-
-
Constructor Summary
Constructors Constructor Description ShardedGateway(String url, int shardTotal)
Creates a new GatewayBot instance with the provided properties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getShardTotal()
The recommended shard totalString
getUrl()
The gateway endpoint
-
-
-
Constructor Detail
-
ShardedGateway
public ShardedGateway(String url, int shardTotal)
Creates a new GatewayBot instance with the provided properties- Parameters:
url
- The gateway endpoint (wss)shardTotal
- The recommended shard total
-
-
Method Detail
-
getUrl
public String getUrl()
The gateway endpoint- Returns:
- The endpoint
-
getShardTotal
public int getShardTotal()
The recommended shard total- Returns:
- The shard total
-
-