Lane

class Lane(val name: String)(source)

A class of callers that shares a budget's windows. Calls on one lane are served first come first served; a lane's share (WindowedCallBudget.Builder.laneShares) is a floor held back for it and never lent.

Stable Core. Equality is on name, case-sensitively; Interactive and Tracker are ordinary lanes, not a closed set.

Parameters

name

the lane's name; not blank.

Throws

Constructors

Link copied to clipboard
constructor(name: String)

Types

Link copied to clipboard
object Companion

The two lanes the stack names.

Properties

Link copied to clipboard

The lane's name; not blank.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Two Lanes are equal when their names are equal, case-sensitively.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code consistent with equals: it is computed from the same properties.

Link copied to clipboard
open override fun toString(): String

A diagnostic string for logs: the lane's name. Its format is not part of the API and may change.