Replayer Class
Replay service used to play ops using the delta connection.
Signature
export declare class Replayer
Constructors
Constructor | Description |
---|---|
(constructor)(deltaConnection, documentStorageService) | Constructs a new instance of the Replayer class |
Properties
Property | Type | Description |
---|---|---|
currentReplayedOp | number | |
ops | readonly Readonly<ISequencedDocumentMessage>[] |
Methods
Method | Return Type | Description |
---|---|---|
replay(replayTo) | number | Replay the ops upto a certain number. |
Constructor Details
(constructor)
Constructs a new instance of the Replayer
class
Signature
constructor(deltaConnection: ReplayFileDeltaConnection, documentStorageService: FileDeltaStorageService);
Parameters
Parameter | Type | Description |
---|---|---|
deltaConnection | ReplayFileDeltaConnection | |
documentStorageService | FileDeltaStorageService |
Property Details
currentReplayedOp
Signature
get currentReplayedOp(): number;
set currentReplayedOp(op: number);
Type: number
ops
Signature
get ops(): readonly Readonly<ISequencedDocumentMessage>[];
Type: readonly Readonly<ISequencedDocumentMessage>[]
Method Details
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
Return type: number