public final class BucketKey extends Object
RequestStream according to the bucket
that requests for the stream fall into.
Following the Discord documentation, requests belong to the same bucket if:
Route.getUriTemplate() are equal.major parameters are equal.message delete route fall
into a separate bucket.
This is a value-based class.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
static BucketKey |
of(DiscordWebRequest request) |
static BucketKey |
of(String uriTemplate,
String completeUri) |
String |
toString() |
public static BucketKey of(DiscordWebRequest request)