Skip to main content
Version: v1

IDeltaManager Interface

Manages the transmission of ops between the runtime and storage.

Signature​

export interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>, IDeltaSender, IDisposable

Extends: IEventProvider<IDeltaManagerEvents>, IDeltaSender, IDisposable

Type Parameters​

ParameterDescription
T
U

Properties​

PropertyTypeDescription
activebooleanFlag to indicate whether the client can write or not.
clientDetailsIClientDetailsDetails of client
hasCheckpointSequenceNumberbooleanTells if current connection has checkpoint information. I.e. we know how far behind the client was at the time of establishing connection
inboundIDeltaQueue<T>The queue of inbound delta messages
inboundSignalIDeltaQueue<ISignalMessage>The queue of inbound delta signals
initialSequenceNumbernumberThe initial sequence number set when attaching the op handler
lastKnownSeqNumbernumberThe latest sequence number the delta manager is aware of
lastMessageISequencedDocumentMessage | undefinedThe last message processed by the delta manager
lastSequenceNumbernumberThe last sequence number processed by the delta manager
maxMessageSizenumberMax message size allowed to the delta manager
minimumSequenceNumbernumberThe current minimum sequence number
outboundIDeltaQueue<U[]>The queue of outbound delta messages
readOnlyInfoReadOnlyInfo
serviceConfigurationIClientConfiguration | undefinedService configuration provided by the service.
versionstringProtocol version being used to communicate with the service

Methods​

MethodReturn TypeDescription
submitSignal(content)voidSubmit a signal to the service to be broadcast to other connected clients, but not persisted

Property Details​

active​

Flag to indicate whether the client can write or not.

Signature​

readonly active: boolean;

Type: boolean

clientDetails​

Details of client

Signature​

readonly clientDetails: IClientDetails;

Type: IClientDetails

hasCheckpointSequenceNumber​

Tells if current connection has checkpoint information. I.e. we know how far behind the client was at the time of establishing connection

Signature​

readonly hasCheckpointSequenceNumber: boolean;

Type: boolean

inbound​

The queue of inbound delta messages

Signature​

readonly inbound: IDeltaQueue<T>;

Type: IDeltaQueue<T>

inboundSignal​

The queue of inbound delta signals

Signature​

readonly inboundSignal: IDeltaQueue<ISignalMessage>;

Type: IDeltaQueue<ISignalMessage>

initialSequenceNumber​

The initial sequence number set when attaching the op handler

Signature​

readonly initialSequenceNumber: number;

Type: number

lastKnownSeqNumber​

The latest sequence number the delta manager is aware of

Signature​

readonly lastKnownSeqNumber: number;

Type: number

lastMessage​

The last message processed by the delta manager

Signature​

readonly lastMessage: ISequencedDocumentMessage | undefined;

Type: ISequencedDocumentMessage | undefined

lastSequenceNumber​

The last sequence number processed by the delta manager

Signature​

readonly lastSequenceNumber: number;

Type: number

maxMessageSize​

Max message size allowed to the delta manager

Signature​

readonly maxMessageSize: number;

Type: number

minimumSequenceNumber​

The current minimum sequence number

Signature​

readonly minimumSequenceNumber: number;

Type: number

outbound​

The queue of outbound delta messages

Signature​

readonly outbound: IDeltaQueue<U[]>;

Type: IDeltaQueue<U[]>

readOnlyInfo​

Signature​

readonly readOnlyInfo: ReadOnlyInfo;

Type: ReadOnlyInfo

serviceConfiguration​

Service configuration provided by the service.

Signature​

readonly serviceConfiguration: IClientConfiguration | undefined;

Type: IClientConfiguration | undefined

version​

Protocol version being used to communicate with the service

Signature​

readonly version: string;

Type: string

Method Details​

submitSignal​

Submit a signal to the service to be broadcast to other connected clients, but not persisted

Signature​

submitSignal(content: any): void;

Parameters​

ParameterTypeDescription
contentany