MockContainerRuntimeForReconnection Class
Specialized implementation of MockContainerRuntime for testing ops during reconnection.
To use, import via @fluidframework/test-runtime-utils/legacy
.
For more information about our API support guarantees, see here.
Signature
export declare class MockContainerRuntimeForReconnection extends MockContainerRuntime
Extends: MockContainerRuntime
Constructors
Constructor | Alerts | Description |
---|---|---|
(constructor)(dataStoreRuntime, factory, runtimeOptions, overrides) | Alpha |
Constructs a new instance of the MockContainerRuntimeForReconnection class |
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
connected | Alpha |
boolean | ||
factory | Alpha |
readonly |
MockContainerRuntimeFactoryForReconnection | |
pendingRemoteMessages | Alpha |
readonly |
ISequencedDocumentMessage[] | Contains messages from other clients that were sequenced while this runtime was marked as disconnected. |
processedOps | Alpha |
optional , readonly |
ISequencedDocumentMessage[] |
Constructor Details
(constructor)
Constructs a new instance of the MockContainerRuntimeForReconnection
class
For more information about our API support guarantees, see here.
Signature
constructor(dataStoreRuntime: MockFluidDataStoreRuntime, factory: MockContainerRuntimeFactoryForReconnection, runtimeOptions?: IMockContainerRuntimeOptions, overrides?: {
minimumSequenceNumber?: number;
trackRemoteOps?: boolean;
});
Parameters
Parameter | Modifiers | Type | Description |
---|---|---|---|
dataStoreRuntime | MockFluidDataStoreRuntime | ||
factory | MockContainerRuntimeFactoryForReconnection | ||
runtimeOptions | optional | IMockContainerRuntimeOptions | |
overrides | optional | { minimumSequenceNumber?: number; trackRemoteOps?: boolean; } |
Property Details
connected
For more information about our API support guarantees, see here.
Signature
get connected(): boolean;
set connected(connected: boolean);
Type: boolean
factory
For more information about our API support guarantees, see here.
Signature
protected readonly factory: MockContainerRuntimeFactoryForReconnection;
Type: MockContainerRuntimeFactoryForReconnection
pendingRemoteMessages
Contains messages from other clients that were sequenced while this runtime was marked as disconnected.
For more information about our API support guarantees, see here.
Signature
protected readonly pendingRemoteMessages: ISequencedDocumentMessage[];
Type: ISequencedDocumentMessage[]
processedOps
For more information about our API support guarantees, see here.
Signature
protected readonly processedOps?: ISequencedDocumentMessage[];
Type: ISequencedDocumentMessage[]