Queue
Extends:
Static Member Summary
Static Public Members | ||
public static get |
expiry: * returns the cut off in milliseconds ago for checking deadspace |
Static Method Summary
Static Public Methods | ||
public static |
Creates a new instance of Queue |
Constructor Summary
Public Constructor | ||
public |
creates a new Queue |
Method Summary
Public Methods | ||
public |
bringOnline(): * attaches all relevant listeners and brings the Queue online |
|
public |
Completes a job in the Job table |
|
public |
Inserts a job to the Job table for processing later |
|
public |
Stores a job as errored in the Job table |
|
public |
kill() kills the Queue and removes anything that may cause a memory leak |
|
public |
Schedules a job to run in an available thread |
|
public |
finds jobs and schedules them. |
Inherited Summary
From class Expressive | ||
public static |
create(): * creates a new inherited instance |
|
public |
debug: * |
|
public |
expressive emit |
|
public |
when(): * expressive once |
Static Public Members
public static get expiry: * source
returns the cut off in milliseconds ago for checking deadspace
Properties:
Name | Type | Attribute | Description |
expiry | * |
Static Public Methods
Public Constructors
Public Methods
public bringOnline(): * source
attaches all relevant listeners and brings the Queue online
Return:
* |
public complete(job: Job): * source
Completes a job in the Job table
Params:
Name | Type | Attribute | Description |
job | Job | The job |
Return:
* |
public enqueue(job: Job): * source
Inserts a job to the Job table for processing later
Params:
Name | Type | Attribute | Description |
job | Job | The job to insert |
Return:
* |
public error(job: Job): * source
Stores a job as errored in the Job table
Params:
Name | Type | Attribute | Description |
job | Job | The job |
Return:
* |