Skip to main content
Version: v1

DocumentDeltaStorageService Class

Storage service limited to only being able to fetch documents for a specific document

Signature

export declare class DocumentDeltaStorageService implements IDocumentDeltaStorageService

Implements: IDocumentDeltaStorageService

Constructors

Constructor Description
(constructor)(tenantId, id, deltaStorageService, documentStorageService) Constructs a new instance of the DocumentDeltaStorageService class

Methods

Method Return Type Description
fetchMessages(from, to, abortSignal, cachedOnly, fetchReason) IStream<ISequencedDocumentMessage[]>

Constructor Details

(constructor)

Constructs a new instance of the DocumentDeltaStorageService class

Signature

constructor(tenantId: string, id: string, deltaStorageService: IDeltaStorageService, documentStorageService: DocumentStorageService);

Parameters

Parameter Type Description
tenantId string
id string
deltaStorageService IDeltaStorageService
documentStorageService DocumentStorageService

Method Details

fetchMessages

Signature

fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean, fetchReason?: string): IStream<ISequencedDocumentMessage[]>;

Parameters

Parameter Modifiers Type Description
from number
to number | undefined
abortSignal optional AbortSignal
cachedOnly optional boolean
fetchReason optional string

Returns

Return type: IStream<ISequencedDocumentMessage[]>