Package discord4j.rest.request
@NonNullApi
package discord4j.rest.request
Components to build and route requests to the Discord REST API.
-
ClassDescriptionAn implementation of
GlobalRateLimiterthat uses aRateLimitOperatorcoordinate requests, injecting an additional delay if a source trips the limiter early throughBucketGlobalRateLimiter.rateLimitFor(Duration).Used to access the appropriateRequestStreamaccording to the bucket that requests for the stream fall into.Facilitates the routing ofDiscordWebRequestinstances to the properRequestStreamaccording to the bucket in which the request falls.Thrown when a REST request is discarded because of a queue overflow.Template encoding all the needed information to make an HTTP request to Discord.Contract to handle aMonoofClientResponseafter a network exchange is done.Used to prevent requests from being sent while the bot is globally rate limited.The retry function used for reading and completing HTTP requests.A mapper between aHttpClientResponseand aDurationrepresenting a delay due to rate limiting.RequestQueue<T>Abstraction for a REST request queue.Factory to createRequestQueueinstances.A predicate that can match a givenDiscordWebRequest.Represents a connector executingDiscordWebRequestobjects against the Discord REST API.Options used to control the behavior of aRouter.