public class DefaultRouter extends Object implements Router
DiscordWebRequest instances to the proper RequestStream according to
the bucket in which the request falls.| Constructor and Description |
|---|
DefaultRouter(RouterOptions routerOptions)
Create a Discord API bucket-aware
Router configured with the given options. |
| Modifier and Type | Method and Description |
|---|---|
DiscordWebResponse |
exchange(DiscordWebRequest request)
Queues a request for execution.
|
public DefaultRouter(RouterOptions routerOptions)
Router configured with the given options.routerOptions - the options that configure this Routerpublic DiscordWebResponse exchange(DiscordWebRequest request)
Routerexchange in interface Routerrequest - the request to queue.DiscordWebResponse specifying a contract to operate on the response