See: Description
| Interface | Description |
|---|---|
| GlobalRateLimiter |
Used to prevent requests from being sent while the bot is
globally rate limited.
|
| RateLimitStrategy |
A mapper between a
HttpClientResponse and a Duration representing a delay due to rate limiting. |
| RequestQueue<T> |
Abstraction for a REST request queue.
|
| RequestQueueFactory |
Factory to create
RequestQueue instances. |
| Router |
Represents a connector executing
DiscordWebRequest objects against the Discord REST API. |
| Class | Description |
|---|---|
| BucketGlobalRateLimiter |
An implementation of
GlobalRateLimiter that uses a RateLimitOperator coordinate requests, injecting
an additional delay if a source trips the limiter early through BucketGlobalRateLimiter.rateLimitFor(Duration). |
| BucketKey |
Used to access the appropriate
RequestStream according to the bucket
that requests for the stream fall into. |
| DefaultRouter |
Facilitates the routing of
DiscordWebRequest instances to the proper RequestStream according to
the bucket in which the request falls. |
| DiscordWebRequest |
Template encoding all of the needed information to make an HTTP request to Discord.
|
| DiscordWebResponse |
Contract to handle a
Mono of ClientResponse after a network exchange is done. |
| RateLimitRetryOperator |
The retry function used for reading and completing HTTP requests.
|
| ResponseHeaderStrategy | |
| RouteMatcher |
A predicate that can match a given
DiscordWebRequest. |
| RouterOptions |
Options used to control the behavior of a
Router. |
| Exception | Description |
|---|---|
| DiscardedRequestException |
Thrown when a REST request is discarded because of a queue overflow.
|