Skip to main content
Version: v2

IOpProcessingController Interface

Exposes fine-grained control over the Container's inbound and outbound op queues

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/test-utils/legacy.

For more information about our API support guarantees, see here.

Signature​

export interface IOpProcessingController

Methods​

MethodAlertsReturn TypeDescription
pauseProcessing(containers)BetaPromise<void>Process all queue activities, to prepare for fine-grained control via processIncoming and processOutgoing
processIncoming(containers)BetaPromise<void>Process all ops sitting in the inbound queue, leaving the inbound queue paused afterwards
processOutgoing(containers)BetaPromise<void>Process all ops sitting in the outbound queue, leaving the inbound queue paused afterwards. Also waits for the outbound ops to arrive in the inbound queue.
resumeProcessing(containers)BetavoidResume all queue activities for normal operation of the container

Method Details​

pauseProcessing​

Process all queue activities, to prepare for fine-grained control via processIncoming and processOutgoing

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

pauseProcessing(...containers: IContainer[]): Promise<void>;

Parameters​

ParameterTypeDescription
containersIContainer[]optional subset of all open containers

Returns​

Return type: Promise<void>

processIncoming​

Process all ops sitting in the inbound queue, leaving the inbound queue paused afterwards

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

processIncoming(...containers: IContainer[]): Promise<void>;

Parameters​

ParameterTypeDescription
containersIContainer[]optional subset of all open containers

Returns​

Return type: Promise<void>

processOutgoing​

Process all ops sitting in the outbound queue, leaving the inbound queue paused afterwards. Also waits for the outbound ops to arrive in the inbound queue.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

processOutgoing(...containers: IContainer[]): Promise<void>;

Parameters​

ParameterTypeDescription
containersIContainer[]optional subset of all open containers

Returns​

Return type: Promise<void>

resumeProcessing​

Resume all queue activities for normal operation of the container

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

resumeProcessing(...containers: IContainer[]): void;

Parameters​

ParameterTypeDescription
containersIContainer[]optional subset of all open containers