IDeltaQueue Interface
Queue of ops to be sent to or processed from storage
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/container-definitions/legacy
.
For more information about our API support guarantees, see here.
Signature
/** @sealed */
export interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents<T>>, IDisposable
Extends: IEventProvider<IDeltaQueueEvents<T>>, IDisposable
Type Parameters
Parameter | Description |
---|---|
T |
Properties
Property | Alerts | Type | Description |
---|---|---|---|
idle | Alpha |
boolean | Flag indicating whether or not the queue is idle. I.e. there are no remaining messages to processes. |
length | Alpha |
number | The number of messages remaining in the queue |
paused | Alpha |
boolean | Flag indicating whether or not the queue was paused |
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
pause() | Alpha |
Promise<void> | Pauses processing on the queue. |
peek() | Alpha |
T | undefined | Peeks at the next message in the queue |
resume() | Alpha |
void | Resumes processing on the queue |
toArray() | Alpha |
T[] | Returns all the items in the queue as an array. Does not remove them from the queue. |
waitTillProcessingDone() | Alpha |
Promise<{ count: number; duration: number; }> | returns number of ops processed and time it took to process these ops. Zeros if queue did not process anything (had no messages, was paused or had hit an error before) |