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 String
getDiscordBaseUrl()
Returns the base url of the Discord API.ExchangeStrategies
getExchangeStrategies()
Returns the currently configuredExchangeStrategies
.GlobalRateLimiter
getGlobalRateLimiter()
Returns the currently configuredGlobalRateLimiter
.ReactorResources
getReactorResources()
Returns the currently configuredReactorResources
.RequestQueueFactory
getRequestQueueFactory()
Returns theRequestQueueFactory
to use for creatingRequestQueue
instances.List<ResponseFunction>
getResponseTransformers()
Returns the list ofResponseFunction
transformations that can be applied to every response.String
getToken()
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 ofResponseFunction
transformations that can be applied to every response. They are to be processed in the given order.- Returns:
- a list of
ResponseFunction
objects.
-
getGlobalRateLimiter
public GlobalRateLimiter getGlobalRateLimiter()
Returns the currently configuredGlobalRateLimiter
.- Returns:
- the configured
GlobalRateLimiter
-
getRequestQueueFactory
public RequestQueueFactory getRequestQueueFactory()
Returns theRequestQueueFactory
to use for creatingRequestQueue
instances.- Returns:
- the configured
RequestQueueFactory
-
getDiscordBaseUrl
public String getDiscordBaseUrl()
Returns the base url of the Discord API.- Returns:
- the configured discord api base url
-
-