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

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

Methods

MethodReturn TypeDescription
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

ParameterTypeDescription
tenantIdstring
idstring
deltaStorageServiceIDeltaStorageService
documentStorageServiceDocumentStorageService

Method Details

fetchMessages

Signature

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

Parameters

ParameterModifiersTypeDescription
fromnumber
tonumber | undefined
abortSignaloptionalAbortSignal
cachedOnlyoptionalboolean
fetchReasonoptionalstring

Returns

Return type: IStream<ISequencedDocumentMessage[]>