Package discord4j.rest.request
Class BucketKey
- java.lang.Object
-
- discord4j.rest.request.BucketKey
-
public final class BucketKey extends Object
Used to access the appropriateRequestStreamaccording to the bucket that requests for the stream fall into.Following the Discord documentation, requests belong to the same bucket if:
- The
Route.getUriTemplate()are equal. - The
major parametersare equal.
message delete routefall into a separate bucket.This is a value-based class.
- Since:
- 3.0
- The
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()static BucketKeyof(DiscordWebRequest request)static BucketKeyof(String uriTemplate, String completeUri)StringtoString()
-
-
-
Method Detail
-
of
public static BucketKey of(DiscordWebRequest request)
-
-