object HttpLiFoQueuedConcurrencyLimitConfig extends Serializable
- Alphabetic
- By Inheritance
- HttpLiFoQueuedConcurrencyLimitConfig
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val DefaultResult: (HttpResponse) => Outcome
- val ServerErrorsMeansDroppedResult: (HttpResponse) => Outcome
Use this if server errors are only caused by server overload, and by nothing else
- def apply(limitAlgorithm: Limit, maxLiFoQueueDepth: Int = 16, batchSize: Int = 10, batchTimeout: FiniteDuration = 500.millis, maxDelay: FiniteDuration = 50.millis, weight: (HttpResponse) => Int = requestWeightExtractor, rejectionResponse: (HttpRequest) => HttpResponse = _ => HttpServerConcurrencyLimit.TooManyRequestsResponse, result: (HttpResponse) => Outcome = DefaultResult, name: String = "http-server-limiter")(implicit system: ActorSystem): HttpLiFoQueuedConcurrencyLimitConfig
- limitAlgorithm
the limit algorithm to use.
- maxLiFoQueueDepth
max queue depth - this is multiplied with the current concurrency limit to determine queue length.
- batchSize
amount of requests that may be served given a single capacity grant of the global limiter actor.
- batchTimeout
validity time of capacity grant batches provided by the global limiter actor.
- maxDelay
the maximum time to wait in the lifo queue for available capacity.
- weight
processing cost of request to adjust latency measurements.
- rejectionResponse
function to compute the response to give when rejecting a request.
- result
how to evaluate the response in terms of latency: was the request dropped, was it successfully processed, or should it be ignored for computing the adaptive concurrency limit
- name
name of the limit actor. Must be globally unique. Specify if you need to create more than one server limiter.
- system
the actor system to use. This is used to fetch request timeout and pipelining limits from the akka http server config.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val requestWeightExtractor: (HttpResponse) => Int
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated