-
Notifications
You must be signed in to change notification settings - Fork 1
LinkedQueue
do- edited this page Aug 28, 2026
·
16 revisions
LinkedQueue is a Queue descendant implementing an in memory Linked list based queue.
Can be extended with a Doser instance for incoming items batching.
| Name | Type | Default | Description |
|---|---|---|---|
doser |
Object |
undefined |
bag of options for Doser
|
maxSize |
Number |
Infinity |
the maximum number of requests queued in memory |
| Name | Type | Description | Note |
|---|---|---|---|
doser |
Doser |
Preliminary buffer | Created and .pipe()d if the doser option is provieded |
size |
Number | the actual queue size | Read only |
[Tracker.LOGGING_DETAILS] |
Object | log payload | {size, maxSize, request} |
[Tracker.LOGGING_EVENTS] |
Object | logging '+' and '-' events |
This synchronous method adds the request to the queue and calls check () which leads to the Job creation as soon as the capacity allows it.
| Name | Payload | When emitted |
|---|---|---|
+ |
the request being added |
After the size is incremented |
- |
the request to be fetched next |
After the size is decremented |