Class DefaultRouter

  • All Implemented Interfaces:
    Router

    public class DefaultRouter
    extends Object
    implements Router
    Facilitates the routing of DiscordWebRequest instances to the proper RequestStream according to the bucket in which the request falls.
    • Constructor Detail

      • DefaultRouter

        public DefaultRouter​(RouterOptions routerOptions)
        Create a Discord API bucket-aware Router configured with the given options.
        Parameters:
        routerOptions - the options that configure this Router