Replayer Class

Packages > @fluidframework/file-driver > Replayer

Replay service used to play ops using the delta connection.

Signature:

export declare class Replayer 

Constructors

List of constructors for this class
Constructor Modifiers Description
(constructor)(deltaConnection, documentStorageService) Constructs a new instance of the Replayer class

Properties

List of properties for this class
Property Modifiers Type Description
currentReplayedOp number
ops readonly Readonly<ISequencedDocumentMessage>[]

Methods

List of methods on this class
Method Modifiers Description
replay(replayTo) Replay the ops upto a certain number.

Constructors

Replayer.(constructor)

Constructs a new instance of the Replayer class

Signature:

constructor(deltaConnection: ReplayFileDeltaConnection, documentStorageService: FileDeltaStorageService);

Parameters

List of parameters
Parameter Type Description
deltaConnection ReplayFileDeltaConnection
documentStorageService FileDeltaStorageService

Properties

currentReplayedOp

Signature:

get currentReplayedOp(): number;

set currentReplayedOp(op: number);

ops

Signature:

get ops(): readonly Readonly<ISequencedDocumentMessage>[];

Methods

replay

Replay the ops upto a certain number.

Signature:

replay(replayTo: number): number;

Parameters

List of parameters
Parameter Type Description
replayTo number The last op number to be replayed.

Returns:

number