Queue Management
The alert queue manages the order in which alerts are displayed. Alerts are presented one at a time — the queue holds pending alerts until the current one finishes.Inspecting the Queue
Clearing the Queue
Hold and Resume
Pause alert presentation without clearing the queue:Configuration
| Config Field | Type | Description |
|---|---|---|
maxSize | number | Max alerts in queue (oldest dropped when full) |
defaultPriority | number | Default priority for new alerts (0-10) |
throttle | number | Minimum ms between alert presentations |
priorities | object | Priority map by activity type |
Example: Queue Badge
Example: Moderator Queue Controls
API Reference
| Method | Returns | Description |
|---|---|---|
queue.getLength() | number | Number of queued alerts |
queue.peek() | object | null | View next alert without removing |
queue.setPriority(type, level) | void | Set priority (0-10) for an activity type |
queue.clear(filter?) | void | Clear queue, optionally filter by {type} |
queue.getConfig() | object | Get current queue configuration |
queue.setConfig(config) | void | Update queue configuration |