Package discord4j.rest.request
Class RouterOptions
- java.lang.Object
-
- discord4j.rest.request.RouterOptions
-
-
Constructor Summary
Constructors Constructor Description RouterOptions(String token, ReactorResources reactorResources, ExchangeStrategies exchangeStrategies, List<ResponseFunction> responseTransformers, GlobalRateLimiter globalRateLimiter, RequestQueueFactory requestQueueFactory, String discordBaseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDiscordBaseUrl()Returns the base url of the Discord API.ExchangeStrategiesgetExchangeStrategies()Returns the currently configuredExchangeStrategies.GlobalRateLimitergetGlobalRateLimiter()Returns the currently configuredGlobalRateLimiter.ReactorResourcesgetReactorResources()Returns the currently configuredReactorResources.RequestQueueFactorygetRequestQueueFactory()Returns theRequestQueueFactoryto use for creatingRequestQueueinstances.List<ResponseFunction>getResponseTransformers()Returns the list ofResponseFunctiontransformations that can be applied to every response.StringgetToken()Returns the currently configured token.
-
-
-
Constructor Detail
-
RouterOptions
public RouterOptions(String token, ReactorResources reactorResources, ExchangeStrategies exchangeStrategies, List<ResponseFunction> responseTransformers, GlobalRateLimiter globalRateLimiter, RequestQueueFactory requestQueueFactory, String discordBaseUrl)
-
-
Method Detail
-
getToken
public String getToken()
Returns the currently configured token.- Returns:
- the configured token
-
getReactorResources
public ReactorResources getReactorResources()
Returns the currently configuredReactorResources.- Returns:
- the configured
ReactorResources
-
getExchangeStrategies
public ExchangeStrategies getExchangeStrategies()
Returns the currently configuredExchangeStrategies.- Returns:
- the configured
ExchangeStrategies
-
getResponseTransformers
public List<ResponseFunction> getResponseTransformers()
Returns the list ofResponseFunctiontransformations that can be applied to every response. They are to be processed in the given order.- Returns:
- a list of
ResponseFunctionobjects.
-
getGlobalRateLimiter
public GlobalRateLimiter getGlobalRateLimiter()
Returns the currently configuredGlobalRateLimiter.- Returns:
- the configured
GlobalRateLimiter
-
getRequestQueueFactory
public RequestQueueFactory getRequestQueueFactory()
Returns theRequestQueueFactoryto use for creatingRequestQueueinstances.- Returns:
- the configured
RequestQueueFactory
-
getDiscordBaseUrl
public String getDiscordBaseUrl()
Returns the base url of the Discord API.- Returns:
- the configured discord api base url
-
-