ThrottleQuota

data class ThrottleQuota(val ratePerWindow: Int, val maxConcurrent: Int, val weight: Int, val bypass: Boolean = false)

The resolved per-actor allowance. One immutable snapshot of "how much of the despawn pipeline is this player entitled to right now".

Constructors

Link copied to clipboard
constructor(ratePerWindow: Int, maxConcurrent: Int, weight: Int, bypass: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

when true every policy waves the actor through untouched.

Link copied to clipboard

relocations this actor may have in flight simultaneously.

Link copied to clipboard

relocations allowed per ThrottleSettings.windowSeconds; 0 means blocked.

Link copied to clipboard
val weight: Int

fair-share weight — a weight-3 player is drained three times as fast as a weight-1 player when the pipeline is contended. This is the knob that makes "some users get more despawned items than others" true.