Class InternalResourceGroup

java.lang.Object
io.trino.execution.resourcegroups.InternalResourceGroup
All Implemented Interfaces:
ResourceGroup

@ThreadSafe public class InternalResourceGroup extends Object implements ResourceGroup
Resource groups form a tree, and all access to a group is guarded by the root of the tree. A group is considered a leaf if it has no subgroups, or all of its subgroups are disabled and have no queued queries. Queries are submitted to leaf groups. Never to intermediate groups. Intermediate groups aggregate resource consumption from their children, and may have their own limitations that are enforced.