Replayer Class
Packages > @fluidframework/file-driver > Replayer
Replay service used to play ops using the delta connection.
Signature:
export declare class Replayer
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(deltaConnection, documentStorageService) | Constructs a new instance of the Replayer class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
currentReplayedOp | number | ||
ops | readonly Readonly<ISequencedDocumentMessage>[] |
Methods
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
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
Parameter | Type | Description |
---|---|---|
replayTo | number | The last op number to be replayed. |
Returns:
number