TopologyDraft

sealed class TopologyDraft

The children of one group while a draft is being written, in the order they are declared.

The children are copied out when the draft ends, so a scope kept past its block cannot change a Topology that already exists.

Inheritors

Types

Link copied to clipboard

The scope inside group: declares the group's children, and may give it a template for attached ones.

Functions

Link copied to clipboard
fun group(name: String, weight: Weight = Weight.ONE, block: TopologyDraft.Group.() -> Unit)

Declares a group named name with weight among its siblings, whose children block declares.

fun group(name: String, weight: Weight = Weight.ONE, maxConcurrent: Long?, block: TopologyDraft.Group.() -> Unit)

Declares a group as the overload without a ceiling does, with at most maxConcurrent leases open beneath it at once, counted across all its children; 0 pauses it, and null sets no ceiling.

Link copied to clipboard
fun lane(name: String, weight: Weight = Weight.ONE)

Declares a lane named name, where work is charged, with weight among its siblings.

fun lane(name: String, weight: Weight = Weight.ONE, maxConcurrent: Long?)

Declares a lane as the overload without a ceiling does, with at most maxConcurrent leases open on it at once; 0 pauses it, and null sets no ceiling.