Group

@Serializable
@SerialName(value = "group")
data class Group(val name: String, val weight: Weight, val children: List<Topology.Node>, val template: Topology.ChildTemplate? = null, val maxConcurrent: Long? = null) : Topology.Node

A group of children that divide its slice between them.

Constructors

Link copied to clipboard
constructor(name: String, weight: Weight, children: List<Topology.Node>, template: Topology.ChildTemplate? = null, maxConcurrent: Long? = null)

Properties

Link copied to clipboard

the children declared in the config, in the order written.

Link copied to clipboard
open override val maxConcurrent: Long?

the most leases open beneath this group at once, counted across all its children; null for no ceiling, 0 to pause it.

Link copied to clipboard
open override val name: String

The child's name, unique among its siblings.

Link copied to clipboard

set when the consumer attaches children to this group while running, and what each attached child gets; null when the group has only its declared children. A group with a template may declare none. An attached child is a leaf unless the template carries a template of its own: then it is a group, and the consumer attaches children beneath it in turn (GroupPath.Nested). Everything below an attached child is attached.

Link copied to clipboard
@Serializable(with = TopologyWeightSerializer::class)
open override val weight: Weight

The child's share relative to its siblings.