case class RequestSettings(credentials: Option[HttpCredentials], ratelimiter: Ratelimiter, relativeTime: Boolean = false, parallelism: Int = 4, maxRetryCount: Int = 3, bufferSize: Int = 32, overflowStrategy: OverflowStrategy = OverflowStrategy.backpressure, userAgent: User-Agent = RequestStreams.defaultUserAgent) extends Product with Serializable
- credentials
The credentials to use when sending the requests.
- ratelimiter
The object to use to track ratelimits and such
- relativeTime
Sets if the ratelimit reset should be calculated using relative time instead of absolute time. Might help with out of sync time on your device, but can also lead to slightly slower processing of requests.
- parallelism
How many requests to try to process at once.
- maxRetryCount
How many times to retry requests if an error occurs on retry flows
- bufferSize
The size of the internal buffer used before messages are sent.
- overflowStrategy
The strategy to use if the buffer overflows.
- Source
- RequestSettings.scala
- Alphabetic
- By Inheritance
- RequestSettings
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RequestSettings(credentials: Option[HttpCredentials], ratelimiter: Ratelimiter, relativeTime: Boolean = false, parallelism: Int = 4, maxRetryCount: Int = 3, bufferSize: Int = 32, overflowStrategy: OverflowStrategy = OverflowStrategy.backpressure, userAgent: User-Agent = RequestStreams.defaultUserAgent)
- credentials
The credentials to use when sending the requests.
- ratelimiter
The object to use to track ratelimits and such
- relativeTime
Sets if the ratelimit reset should be calculated using relative time instead of absolute time. Might help with out of sync time on your device, but can also lead to slightly slower processing of requests.
- parallelism
How many requests to try to process at once.
- maxRetryCount
How many times to retry requests if an error occurs on retry flows
- bufferSize
The size of the internal buffer used before messages are sent.
- overflowStrategy
The strategy to use if the buffer overflows.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bufferSize: Int
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val credentials: Option[HttpCredentials]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxRetryCount: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val overflowStrategy: OverflowStrategy
- val parallelism: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val ratelimiter: Ratelimiter
- val relativeTime: Boolean
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val userAgent: User-Agent
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])