See: Description
| Interface | Description |
|---|---|
| GlobalRateLimiter |
Used to prevent requests from being sent while the bot is
globally rate limited.
|
| Router |
Represents a connector executing
DiscordRequest objects against the Discord REST API. |
| RouterFactory |
Factory used to produce
Router instances dedicated to execute API requests. |
| Class | Description |
|---|---|
| BucketKey |
Used to access the appropriate
RequestStream according to the bucket
that requests for the stream fall into. |
| DefaultRouter |
Facilitates the routing of
DiscordRequests to the proper
RequestStream according to the bucket in which the request falls. |
| DefaultRouterFactory |
A monolithic
RouterFactory that can build Router instances to execute Discord API requests. |
| DiscordRequest<T> |
Template encoding all of the needed information to make an HTTP request to Discord.
|
| RouteMatcher |
A predicate that can match a given
DiscordRequest. |
| RouterOptions |
Options used to control the behavior of a
Router. |
| RouterOptions.Builder |
Builder for
RouterOptions. |
| SemaphoreGlobalRateLimiter |
A
GlobalRateLimiter that uses fair Semaphore instances as implementation. |
| SingleRouterFactory |
A monolithic
RouterFactory that caches a Router
captured at instantiation instead of producing a new one each time
getRouter(discord4j.rest.http.client.DiscordWebClient) or
getRouter(DiscordWebClient, RouterOptions) is called. |